The stopSound coding on darrinearlfox-dot-com/Darrin-Fox-Performance-and-Recording-dot-html is not working...I'm a noob, so this should be easy!
Javascript:
...and implemented:Code:</head> <script language="javascript" type="text/javascript"> function playSound(soundfile) { document.getElementById("dummy").innerHTML= "<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />"; } function stopSound(soundfile) { document.getElementById("dummy").innerHTML= "<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />"; } </script> <body> <span id="dummy"></span>
Code:<img src="images/clip2.png" alt="Dont Cry Guitar Solo" width="19" height="16" border="0" style="margin: 0px 4px 0px 4px;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/clip2-mo.png',1)" onclick="playSound('DontCrySoloEdit.mp3');"/><img src="images/darrin-mute.png" alt="mute" width="10" height="15" style="margin: 0px 4px 0px 4px;" onclick="stopSound('DontCrySoloEdit.mp3');"/>
Are you sure that the mp3 files exist? I don't see anything wrong with the functions.
I am sure the files exist, and they play just fine. What they DON'T do is stop when the stopSound button is clicked....so there must be something wrong with my stopSound script...yeah, I know, I'm a genius![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks