Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Replay a sound using EvalSound before the sound is ended
  2. <script>
  3. function EvalSound(soundobj) {
  4.   var thissound=document.getElementById(soundobj);
  5.   thissound.Play();
  6. }
  7. </script>
  8.  
  9. <embed src="success.wav" autostart=false width=1 height=1 id="sound1"
  10. enablejavascript="true">
  11.        
  12. -function code-
  13. pA = false;
  14. EvalSound('sound1');
  15. } else {
  16. -more code-