Click to See Complete Forum and Search --> : attach sound to button on mouse over


andrew1234
07-31-2003, 01:32 AM
hi

how do i make a little .wav
play on mouse over

<A href="1@2.com" class="link" onmouseover="play sound">

and i'm guessing that the sound has to be preloaded?

thanks for the help

Andrew

xataku_nakusute
07-31-2003, 01:37 AM
<script type="text/javascript">
function play()
{
track.src = 'YourMusic.wav';
}
</script>
<bgsound id="track" src="">
<a href="1@2.com" onmouseover="play()">Play Music</a>

andrew1234
07-31-2003, 01:59 AM
thanks alot

xataku_nakusute
07-31-2003, 02:16 AM
np

andrew1234
07-31-2003, 02:43 AM
is it posible to do that in net scape?

Andrew

xataku_nakusute
07-31-2003, 03:08 AM
uhhh....maybe, though im unfamiliar with the limits/features of netscape.....(as you can tell, im an msie-based guy)