<BGSOUND> 

Description:

The <BGSOUND> tag allows a sound file (WAV, AU or MID) to be played when a page is opened. See "Background Sound" for further information.

Attributes:

autostart=value
Value is TRUE to being playing the music immediately upon page load.
loop=value
The number of times the sound is played. A value of -1 or INFINITE will cause the sound to be played forever
src="url"
The name of the sound file to be played.

Examples:

<bgsound src="elshad.mid" autostart=true loop=infinite>

This example plays a midi file called "elshad". The file will play forever and will start playing as soon as the page is loaded.

Tips:

  1. In general, it is not a good idea to use the <BGSOUND> tag, as your visitors cannot easily turn off the sound. Instead, you might consider a plug-in like Crescendo, which allows sound to be turned off and on.

  2. Most surfers agree that pages with background sound tend to be very annoying. This is very true if the sound cannot be turned off.