Works fine here. There is a slight problem with the image rollover though. The path to the images is wrong:
Code:
this.src='images/Adobe_icon_2.bmp'
Opera doesn't seem to like the mouse down sound, but FF and IE are OK with it. The embed tag, which generally works well for sound in this case, is invalid, but I'm not going to worry about that right now. The sound playing function, though working, is poorly written, and can be reused (you only need one). Try this out:
Code:
<html>
<head>
<title>New Page 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function EvalSound(soundobj) {
document[soundobj].Play();
}
</script>
</head>
<body>
<embed src="Wav_1.wav" autostart=false width=0 height=0 name="sound1"
enablejavascript="true">
<embed src="Wav_2.wav" autostart=false width=0 height=0 name="sound2"
enablejavascript="true">
<p align="center"><a href="http://google.com"><img border="0"
src="Adobe_icon.gif"
onmouseover="EvalSound('sound1');this.src='Adobe_icon_2.bmp';"
onmouseout="this.src='Adobe_icon.gif';"
onmousedown="EvalSound('sound2');this.src='Adobe_icon.gif';"
width="32" height="32"></a></p>
</body>
</html>
Bookmarks