So I followed the directions at:
to use the embed command to play a wave file. Below is the code:
<html>
<body>
<script language="JavaScript"><!--
function playSound() { document.firstSound.play(); }
//--></script>
<a href="javascript
laySound()">Play Sound</a><br>
<embed src="sound.wav" hidden=true autostart=false loop=false name="firstSound" mastersound>
</body>
</html>
The command works in older browsers (NS4 & IE5) but none of the new ones such as NS6+ and IE6. It appears that the "<embed>" and "document.firstSound.play()" are no longer supported. Does anyone know of a workaround that will work in the old as well as the new NS and IE browsers?
to use the embed command to play a wave file. Below is the code:
<html>
<body>
<script language="JavaScript"><!--
function playSound() { document.firstSound.play(); }
//--></script>
<a href="javascript
<embed src="sound.wav" hidden=true autostart=false loop=false name="firstSound" mastersound>
</body>
</html>
The command works in older browsers (NS4 & IE5) but none of the new ones such as NS6+ and IE6. It appears that the "<embed>" and "document.firstSound.play()" are no longer supported. Does anyone know of a workaround that will work in the old as well as the new NS and IE browsers?