Turning off back ground sound

J

John Berg

How can I provide the website user to turn the background sound off and on?
I'm using frontpage 2003.
 
T

Thomas A. Rowe

Why not provide users with the ability to turn on sound, instead of forcing then to have to turn it
off?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
T

Trevor L.

John,

I do it this way
HTML
<span id="sound"></span>
<input type="button" value="Play/Stop
Music" onClick="playSound()">

JS
function playSound()
{
x = document.getElementById("sound")
x.innerHTML= (!x.innerHTML )
? '<embed src="minuet.wav" loop=false autostart=true
hidden>'
: ' '
}

Clicking on the button starts or stops sound.
 
Top