I’d like a small .wav file to play on mouseover of an image. IE is easy, it’s Netscape 7 I can’t get to work. I figured out that this script (below) isn’t working because I don’t have the LiveAudio plugin. However, I installed Netscape with the “Typical” option, so I’m guessing that LiveAudio is not part of the standard install anymore? Is this script out of date? I don’t want to use a technique that won’t work for the vast majority of Netscape users! If anyone can help with this I’d really appreciate it.
<script language=”JavaScript”>
<!–
ver=parseInt(navigator.appVersion);
ie4=(ver>3 && navigator.appName!=”Netscape”)?1:0
ns4=(ver>3 && navigator.appName==”Netscape” && navigator.plugins[“LiveAudio”])?1:0
ns3=(ver==3 && navigator.appName==”Netscape” && navigator.plugins[“LiveAudio”])?1:0
var audioOn = false;
function playSound() {
if (ie4) document.all[‘BGSOUND_ID’].src=’Snap.wav’;
if ((ns4||ns3))
{
var thissound=document.Snap;
if (audioOn) {
thissound.Play();
}
}
}
//–>
</script>
</head>
<body bgcolor=”#FFFFFF” text=”#000000″ onLoad=”javascript:audioOn=true”>
<a href=”” onMouseOver=”playSound()”><img name=”photoa” src=”images/camera.jpg” width=92 height=72 border=0></a>
<BGSOUND id=BGSOUND_ID src=””>
<EMBED name=”Snap” src=Snap.wav hidden=”true” width=”0″ height=”0″ AUTOSTART=”FALSE” LOOP=”FALSE” autorewind=”true” enablejavascript=”true” mastersound>
</EMBED>
</body>
?