Link MouseOver sound

<script language="javascript" type="text/javascript">

function playSound(soundfile) {

document.getElementById("dummy").innerHTML=

"<embed src=""+soundfile+"" hidden="true" autostart="true" loop="false" />";

}

</script>

 <A HREF="YourPage.html" onmouseover="playSound('/wp-content/themes/quantum/beep_1.mp3');">Mouse over this text to hear a sound</A>

5 Comments

You must be logged in to post a comment.


  1. It didn't work for me :(


  2. Give it a shot, been a while since I posted this


  3. Would this work in FireFox?


  4. Adam, would this code work in wordpress blogs?And I would also have to download a music player too, right? Thanks in advance, Vickie

    • This will work in wordpress, not sure what you are getting at concerning a music player