Menu
I’ve got an audio file that plays when you first hit a webpage. I need that audio to stop if a link is clicked. I’ve got that working in FireFox by replacing the file that’s playing with a file that doesn’t have any sound, but IE doesn’t seem to recognize the code. Can anyone translate it into an IE compatible version?
[CODE]
<script language=”JavaScript”>
function HideSound(){
document.getElementById(“BSound”).src=”jsilence.mp3″
}
</script>
<input type=button value=”Stop Sound” onclick=”HideSound()”>
<embed id=”BSound” height=”96″ src=”SoundFile.mp3″ hidden=”true” autostart=”true” width=”128″></embed>