To stop it, set the volume to -10000. To do this, here:
document.getElementById('bg').volume = "-10000";
Any other questions, comments, or requests? You know what, here:
Code:
<a href="#" onclick="document.getElementById('bg').volume = '-10000';">OFF</a>|<a href="#" onclick="document.getElementById('bg').volume = '-10000';">ON</a>
These up here ^^^ are the functions you need. However, I got this stuff from this:
Code:
function BGMSTOP(){
if (systm == "C"){
BG.src = "test001.mid"
BG.volume = -10000
}else{
document.embeds[0].stop()
}
}
function BGMSTART(){
if (systm == "C"){
BG.src = "Soul_Food.mid"
BG.volume = 0
}else{
document.embeds[0].stop()
document.embeds[0].play(true)
}
}
You can use excerpts of code from here for your needs.
-magicyte
Bookmarks