View Full Version : NS audio

07-03-2003, 03:13 AM
This works fine for IE...but is there a simple way to include it for NS6+? I tried putting <embed> in there...didn't work...Thanks

function play(s){
<bgsound src="">
<input type="button" value="CHIPS" onClick="play('chips.wav');">
<input type="button" value="HELP" onClick="play('help.wav');">

07-03-2003, 03:29 AM
Well, nothing but IE understands document.all. That's your first problem. Now, assuming all of the HTML is correct, this script should work (in theory... don't have time to test):

<script language="javascript" type="text/javascript">
function play(s)

This *should* work in every DOM-capable browser. Of course, I'm not sure if bgsound is a valid tag...

07-03-2003, 05:22 AM
Nah...Most scripts want the poor NS schmoe to download a plug-in...and by the time he goes thru 4 offsite pages, he's completely lost and can't get back to my site.

I'm thinking an array with a doc.write...