Sound In Windows 7

Joined
Jan 9, 2010
Messages
1
Reaction score
0
I created a stand alone web page (Only runs on desktop), It work fine on Windows XP.
When run on a Windows 7 machine, I get no sound. I''m using the hover setting to make the sound. below is the code I used and zip file with comple application:


<head>
<script language="JavaScript1.4" type="text/javascript">
<!--
function jsPlay(soundobj) {
var thissound= eval("document."+soundobj);
try {
thissound.Play();
}
catch (e) {
thissound.DoPlay();
}
}
//-->
</script>
</head>
<body>
<table border="6" bordercolor="#FFCC00" style="background-color:#FFFFCC" width="400" cellpadding="3" cellspacing="3">
<tr>
<th>Alligator</th>
<th>Lion</th>
<th>Elephant</th>
<th>Polar Bear</th>
<th>Flamingo</th>

</tr>
<tr>
<td align="center"><a onMouseOver="jsPlay('rollimg1sound')" <a href="photo/alligator.bmp"> <IMG SRC="photo/alligator.bmp"> </a>
<embed name="rollimg1sound" src="American Alligator.mp3" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>


<td align="center"><a onMouseOver="jsPlay('rollimg2sound')" <a href="photo/lionscream.jpg"> <IMG SRC="photo/lionscream.jpg"> </a>
<embed name="rollimg2sound" src="lionscream.wav" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td></td>

<td align="center"><a onMouseOver="jsPlay('rollimg3sound')" <a href="photo/angry-elephant.jpg"> <IMG SRC="photo/angry-elephant.jpg"> </a>
<embed name="rollimg3sound" src="Angry elephant.WAV" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td></td>
<td align="center"><a onMouseOver="jsPlay('rollimg4sound')" <a href="photo/polar.gif"> <IMG SRC="photo/polar.gif"> </a>
<embed name="rollimg4sound" src="polrbear.wav" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td></td>

<td align="center"><a onMouseOver="jsPlay('rollimg5sound')" <a href="photo/flamingo.jpg"> <IMG SRC="photo/flamingo.jpg"> </a>
<embed name="rollimg5sound" src="flamingo.wav" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td></td>

</tr>
<tr>
<th>Peacock</th>
<th>Capuchin Monkey</th>
<th>Hippopotamus</th>
<th>Panther</th>
<th>Leapard</th>

</tr>
<tr>
<td align="center"><a onMouseOver="jsPlay('rollimg6sound')" <a href="photo/peacock.jpg"> <IMG SRC="photo/peacock.jpg"> </a>
<embed name="rollimg6sound" src="peacock1.wav" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>

<td align="center"><a onMouseOver="jsPlay('rollimg7sound')" <a href="photo/Capuchin monkey.jpg"> <IMG SRC="photo/Capuchin monkey.jpg"> </a>
<embed name="rollimg7sound" src="Capuchin monkey.WAV" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>

<td align="center"><a onMouseOver="jsPlay('rollimg8sound')" <a href="photo/hippopotamus.jpg"> <IMG SRC="photo/hippopotamus.jpg"> </a>
<embed name="rollimg8sound" src="Hippopotamus.mp3" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>

<td align="center"><a onMouseOver="jsPlay('rollimg9sound')" <a href="photo/panther.jpg"> <IMG SRC="photo/panther.jpg"> </a>
<embed name="rollimg9sound" src="panther.mp3" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>
<td align="center"><a onMouseOver="jsPlay('rollimg10sound')" <a href="photo/leapard.gif"> <IMG SRC="photo/leapard.gif"> </a>
<embed name="rollimg10sound" src="Leopard.wav" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>
</tr>
<tr>
<th>Rattle Snake</th>
<th>Turkey</th>
<th>Tiger</th>
<th>Walrus</th>
<th>Zebra</th>

</tr>
<tr>

<td align="center"><a onMouseOver="jsPlay('rollimg11sound')" <a href="photo/Rattlesnake.gif"> <IMG SRC="photo/Rattlesnake.gif"> </a>
<embed name="rollimg11sound" src="Rattlesnake.wav" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>

<td align="center"><a onMouseOver="jsPlay('rollimg12sound')" <a href="photo/turkey.jpg"> <IMG SRC="photo/turkey.jpg"> </a>
<embed name="rollimg12sound" src="turkey.WAV" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>

<td align="center"><a onMouseOver="jsPlay('rollimg13sound')" <a href="photo/Tigermoose.jpg"> <IMG SRC="photo/Tiger.jpg"> </a>
<embed name="rollimg13sound" src="Tiger.mp3" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>
<td align="center"><a onMouseOver="jsPlay('rollimg14sound')" <a href="photo/walrus.jpg"> <IMG SRC="photo/walrus.jpg"> </a>
<embed name="rollimg14sound" src="walrus.wav" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>

<td align="center"><a onMouseOver="jsPlay('rollimg15sound')" <a href="photo/Zebra.gif"> <IMG SRC="photo/Zebra.gif"> </a>
<embed name="rollimg15sound" src="zebra.wav" autostart="false" mastersound hidden="true" volume=100 width=0 height=0></embed></td>
</tr>
</table>
</body>
 

Attachments

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top