I have a link in my html. Like this:
<a href="#" class="sound">Click</a>
When you click on this button. Then a sound will play. But how can i make that with javascript / jquery. This is the sound:
I have a link in my html. Like this:
<a href="#" class="sound">Click</a>
When you click on this button. Then a sound will play. But how can i make that with javascript / jquery. This is the sound:
The best practice cross-browser wise, would probably be using flash. However if you want to use the nifty HTML5 solutions, you could have a look at this place:
http://code.coneybeare.net/getting-html5-audio-tag-and-flash-fallback-to