Right now, I have an embedded .mp3 that loops once it's loaded, and an on/of
f
button that changes images, but doesn't control the sound. Are there specia
l
functions for this? Here's the code, if it helps:
//in the head/javascript section
var soundON = true;
function toggleSound() {
if(soundON) {
MM_swapImage('sound','','images_Nav/soundOff.jpg',1);
soundON = false;
} else {
MM_swapImage('sound','','images_Nav/soundON.jpg',1);
soundON = true;
}
}
// in the body
<embed src="files/mySound.mp3" name="mySound" mastersound autostart="true"
loop="true" hidden="true"></embed>
<map name="soundMap2">
<area shape="rect" coords="7,15,43,49" href="#"
onclick="javascript:toggleSound();">
</map>TextText
I appreciate the help,
Paul
|