The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript sound plays locally, stops after a couple of seconds on site.

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #31416

    I have a page with some mp3 audio. Rough working version can be found here. All the buttons call the same sound at the moment, it’s not a bug.
    The sound works fine when I test locally in browsers but when it is on the site the sound stops after a couple of seconds.
    If I click continuously the sound keeps going!
    Any ideas?

    I am using script

    embedding the sound


    then calling it like this

    ALT="PLay Sound" NAME="Submit now" onClick="EvalSound('sound1')">

    ALT="Stop Sound" NAME="Submit now" onClick="EndSound('sound1')">
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.