|
|
owen
regular
Reg'd: Thu
Posts: 3236
Loc: Lancashire, United Kingdom
|
Re: Background sound
Sat May 22 2004 03:50 PM
|
|
|
Delete your existing code and use this code instead. It can go anywhere in the body tag. Wherever you choose to put it, this will appear:

Which will automatically play the song and repeat it 20 times and will stop when you move to another page unless you put the same code into another page. It can only play in Internet Explorer, but for people who don't have Internet Explorer, it displays the text "Click here for sound". This is somewhat a better method than the other because the user can change the volume and pause or stop the song.
<object id="Player1" width="250" height="65" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"> <param name="URL" value="http://www.userclub.de/ucolaf/midi/pop/EltonJohn_CandleInTheWind.mid"> <param name="autoStart" value="true"> <param name="playCount" value="20"> [Click <a href="http://www.userclub.de/ucolaf/midi/pop/EltonJohn_CandleInTheWind.mid">here</a> for sound] </object>
Owen, http://www.isecurity.org.uk "Don't be content with things as they are. The earth is yours and the fullness therof"- Winston Churchill
|
|
|
|
|