i want to have a staticy sound play when the mouse goes over a link. so far i have this... can you tell me where i'm going wrong?
<SCRIPT LANGUAGE="JavaScript">
function fncsfx(mySound)
{
document.getElementById('mysfx').src=mySound;
}
function stopme()
{
document.getElementById('mysfx').src="";
}
</script>
and the HTML
<div class="menua"><a href="home.html" onMouseover="fncsfx(' onMouseout="stopme();">Home</a></div>
<embed src="song.mp3" autostart=true hidden=true loop=infinite>
<embed id="mysfx" autostart=true hidden=true></embed>
here are my questions... i want both things to play infinitely... the first embed is background music... the second is the sound effect.
1)How do I make the sound effect play onMouseover!?
2)How do I make both things play inifinitly?
3)Is there a more practicle way to do this?
Later,
Greelmo
<SCRIPT LANGUAGE="JavaScript">
function fncsfx(mySound)
{
document.getElementById('mysfx').src=mySound;
}
function stopme()
{
document.getElementById('mysfx').src="";
}
</script>
and the HTML
<div class="menua"><a href="home.html" onMouseover="fncsfx(' onMouseout="stopme();">Home</a></div>
<embed src="song.mp3" autostart=true hidden=true loop=infinite>
<embed id="mysfx" autostart=true hidden=true></embed>
here are my questions... i want both things to play infinitely... the first embed is background music... the second is the sound effect.
1)How do I make the sound effect play onMouseover!?
2)How do I make both things play inifinitly?
3)Is there a more practicle way to do this?
Later,
Greelmo