<script>
//function PlaySound() { var sound = document.getElementById(sound1); sound.Play(); alert("ok");}
function playSound( url ){
var s=document.getElementById("sound").innerHTML="<embed src='"+url+"' hidden=true autostart=true loop=false>";
s.play();
}
</script>
<!--
<embed src="sound_5.mp3" hidden="true" autostart="false" loop="false" width="0" height="0" id="sound1" enablejavascript="true"/>-->
<input type="button" onclick="playSound('sound.wav')" value="Play"/>
<div id="sound"></div>
Hi friends,
I want to play sound from above code which is working fine in IE and chrome browser but not works in mozilla firefox. It demands for some plugins and when I install the required plug-ins(Quick TIme), it neither works on mozilla and creates problem in chrome also (page covered with a blue screen.)
So, friends can anyone tell me where I am wrong and what I should do now??
Please help...
Thanks in advance...