Hi all
I have this code:
[CODE]<script>
function EvalSound(soundobj) {
var thissound=document.getElementById(soundobj);
thissound.Play();
}
</script>
<embed src=”success.wav” autostart=false width=1 height=1 id=”sound1″
enablejavascript=”true”>
I play this sound when a function is triggered, with this javascript code. My code looks like this:
[CODE] …..
pA = false;
EvalSound(‘sound1’);
} else {
…..
This all works, but if triggers again before the sound is done playing, it will do nothing. I want it to replay the sound immediately when the function is triggered again, even if the sound isn’t ended yet.
Tried
[CODE]EvalSoundOff
and
[CODE]thissound.Play();
but no luck with these…
Hope this is possible, all suggestions are welcome thanks!!