controlling sound play

I want to put a small sound file on my Web site. I want people to be able to click on a graphic or a button and then have the sound play in that instant. Is there a way to set this up without any messy plugins?

For the document.embeds[X].play(false), X stands for the array number of your embedded source, 0 being the first element in the array. The embedded sources array elements are number by the order in which they load. So, if you have more than one sound, the command to play the second would be document.embeds[1].play(false).

Featured Post

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Foreword (July, 2015)
Since I first wrote this article, years ago, a great many more people have begun using the internet. They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children.
So, while being a kid is still extremely important, it’s also …

This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details.
Login to your Google Account, then search for "Google Mapmaker…

The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…