I have a link <a href="#" id="button">click</a> on my page and I want to play a notification or alert beep on click. how can I do this using jQuery??
Thanks in advance...:)
blasteralfred
I have a link <a href="#" id="button">click</a> on my page and I want to play a notification or alert beep on click. how can I do this using jQuery??
Thanks in advance...:)
blasteralfred
use the jQuery sound plugin.
You dont need jQuery..
<BGSOUND ID="SOUND_ID" LOOP=1 VOLUME="-200" SRC="mySound.mid">
document.all['SOUND_ID'].src='mySound.mid';
If you need a more fancy player you will need to embed on of those flash player and pass your mp3 file as source. Google it out, there are many.
You can use HTML5's audio element.
HTML5 audio on Nettuts - there is a jQuery example