The <BGSOUND>
element allows authors to create pages that will play sound clips, or background soundtracks while the page is being viewed Sounds can either be samples (.WAV or .AU format) or MIDI (.MID format).
The HTML used to insert a background sound into a page is:
<BGSOUND SRC="start.wav">
The BGSOUND
element accepts the following attributes.
SRC
This attribute specifies the address of a sound to be played.
LOOP=n
This attribute specifies how many times a sound will loop when activated. If n=-1
or LOOP=INFINITE
is specified, the sound will loop indefinitely.
Example
Below is an example of a BGSOUND tag:
<BGSOUND SRC="clouds.mid">
NOTE : Internet Explorer now fully supports use of Netscape plug-ins using the <EMBED...>
element. Therefore, using :
<EMBED SRC="clouds.mid" HIDDEN="True">
will produce the same effect as using the above <BGSOUND...>
element (and will also work in Netscape (3.0 and above)). The actual <BGSOUND...>
element is still Internet Explorer specific though.