Click to See Complete Forum and Search --> : Two Qeustions... maybe 3


Greelmo
05-31-2003, 08:53 PM
so here's the dilio... I want to have a staticy electricy sound play ONLY when the mouse goes over a link on this site im making for a client. Where do i get that sound, and how do i do it... I was thinking...
<script language="JavaScript>
function fncplay()
{
document.write("<embed src="sound.wav" autostart=true hidden=true repeat=true");
}
</script>
<body>
<a href="blah.html" onMouseover="fncplay();">LINK!</a>
</body>
will that work?

Oh, and this client owns a site from Register.com... how the heck do i post the code up on the site? Are any of you familiar with register.com? Help is greatly appreciated!
Thanks a mil

Greelmo
05-31-2003, 10:12 PM
how do i make a script so that when the mouse moves over a link, a sound effect plays in a loop, and then it goes off when the mouse goes off the link? PLEASE HELP ME!! i can't figure it out!

Mr J
06-01-2003, 02:55 AM
<script language="javascript">
<!--
function playme(your_sound){
document.getElementById('my_ID').src=your_sound
}

function stopme(){
document.getElementById('my_ID').src=""
}
// -->
</script>


<BGSOUND ID="my_ID">


<a href="#null" onmouseover="playme('your_sound.mid')" onmouseout="stopme()">Sound 2</a>