can anyone help me with javascript?

I'm trying to do something like this link :

Click on an image and it plays a sound file, you click on it again (while it's still playing the sound) it plays from the beginning.

I copied the html and script and put it inside html tags to test it out but when I opened the html file and clicked on the image, the page moves to the mp3 file link page instead of playing the sound file on the page.

I know some java but I don't have any web scripting experience so can anyone tell me why it's not doing the same thing as that link above?

3 Answers

  • Anonymous
    8 years ago
    Favorite Answer

    yea i guess so

  • 8 years ago

    My guess is you need to download the sound file and point your webpage to the local copy, but I'd have to see the code to be any further help.

  • 8 years ago

    Double check that you are referencing a jquery package? I see the code doesnt include a reference on that page and may be what it is missing.

Still have questions? Get your answers by asking now.