Closed Thread
Results 1 to 3 of 3

Thread: Troubleshoot my playSound and stopSound script? Please?

  1. #1
    Join Date
    Aug 2009
    Posts
    2
    Rep Power
    0

    Question Troubleshoot my playSound and stopSound script? Please?

    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:

    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>
    ...and implemented:

    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');"/>

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: Troubleshoot my playSound and stopSound script? Please?

    Are you sure that the mp3 files exist? I don't see anything wrong with the functions.

  4. #3
    Join Date
    Aug 2009
    Posts
    2
    Rep Power
    0

    Re: Troubleshoot my playSound and stopSound script? Please?

    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

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [HELP] convert Perl script to Bash shell script
    By Egypte in forum Linux Programming and Scripting
    Replies: 2
    Last Post: 04-24-2011, 05:37 PM
  2. Help me troubleshoot? Cox and Comcast users only
    By phpforfun in forum The Lounge
    Replies: 3
    Last Post: 07-19-2009, 11:17 AM
  3. PHP script writing a PHP script
    By ezcat in forum PHP Development
    Replies: 6
    Last Post: 03-08-2009, 04:47 AM
  4. What is the difference between VB script and Java script?
    By newage123 in forum JavaScript and CSS
    Replies: 8
    Last Post: 11-14-2008, 10:49 AM
  5. need help to troubleshoot
    By debug in forum C and C++
    Replies: 2
    Last Post: 11-13-2008, 05:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts