Adding Sound

The simplest way to add a background sound to your page is to use the <bgsound src=" "> tag.
You can use .mid or .wav files.

<BGSOUND SRC="Your Sound">

This will play a single sound file when the page has loaded.
If you want the sound file to repeat add loop=" "

<BGSOUND SRC="Your Sound" loop="999">

You can stop the sound from playing by pressing the Stop icon on the browser toolbar.

Please note that bgsound is IE only


Embedded Sound

Another way to have sound is to embed a sound into your page using:-

<EMBED SRC="Your Sound">

By adding a few attributes this will also allow you to give your visitor the means to control the playing sound.

<EMBED SRC="Your Sound" hidden="false" height=25 width=150 autostart="false">

Your visitor can choose to Play, Pause, or Stop the sound being played.

If you have mutliple sound files that you want your visitor to hear then you can have more than one sound embeded.

<EMBED SRC="Your Sound 2" hidden="false" height=25 width=150 autostart="false">

Attributes:

These attributes go inside the EMBED tag

AUTOSTART=true|false - This specifies whether or not the sound file will automatically begin playing when your page is accessed.

LOOP=true|false - This specifies whether or not the sound file begins playing again once it has finished.

HIDDEN=true|false - Used to make the player invisible. The viewer will not have the option of stopping the sound file.

HEIGHT=pixels WIDTH=pixels - This will specify the size of the player to be displayed on your page.

VOLUME= Ranging from 0 to 100.