Question : Java Scripted Roll-over Sound Files do not work in Google Chrome

Hello ~  The following Java scripted sound files do not play in Google Chrome but DO play in IE7 and Firefox.

The code for one of the linked images intended to play the sound (others are similar):

<img src="images/Puppy_begs.gif" width="153" height="176" onMouseOver="EvalSound('sound1')">

Yes, Java scripting IS enabled on pages in Google Chrome.

Ideas???

Many Thanks, Jacob
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
</head> 
<script> 
function EvalSound(soundobj) {
  var thissound=document.getElementById(soundobj);
  thissound.Play();
}
</script> 
 
<script language="JavaScript" type="text/JavaScript"> 
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script> 
 
<embed src="images/bark1.wav" autostart=false width=0 height=0 id="sound1"
enablejavascript="true"> 
 
<embed src="images/ttmouse.wav" autostart=false width=0 height=0 id="sound2"
enablejavascript="true"> 
 
<embed src="images/meeow.wav" autostart=false width=0 height=0 id="sound3"
enablejavascript="true"> 
 
<embed src="images/horse.wav" autostart=false width=0 height=0 id="sound4"
enablejavascript="true"> 
 
<embed src="images/kerplosh.wav" autostart=false width=0 height=0 id="sound5"
enablejavascript="true"> 
 
<embed src="images/birthday song.mp3" autostart=false width=0 height=0 id="sound6"
enablejavascript="true"> 
 
<BODY>

Answer : Java Scripted Roll-over Sound Files do not work in Google Chrome

Chrome uses my default media player.  Have you tried putting your tunes after the body tag?  Chrome has seemed to be a little pickier about placement of elements than other browsers.
Random Solutions  
 
programming4us programming4us