I never cease to wonder why people think automatic background sound on
a website is a "good thing."
Instead of generating a sound and allowing the user to turn it off
(or, as I do, leave the website!), why don't you create a quiet
website and let the user click on a button to play the music.
--
Terry
My blog:
http://www.TheNextWindow.com
My home theater site:
http://www.TerrysHomeTheater.com
My tip site and newsletter:
http://www.TerrysComputerTips.com
Mark,
At the moment I use a cookie to control playing music on entry. If
the cookie is not set, the music plays.
Otherwise,otherwise. So I thought I'd try the suggestion in the link
you gave.
This is my code:
<embed src="minuet.mid" id="theNoise" name="theNoise"
width="144" height="45" autostart="true" loop="false">
<input type="button" value="Stop
Sound"
onClick="document.all['theNoise'].src='jsilence.mid'">
where jsilence.mid is just an empty file
The msuic plays fine, but pressing the "Stop Sound" button does
nothing.
I am using IE6.
Any ideas anyone?