Adding sound to your page is a neat way to give your page a bit of life.
The three main sound formats that I believe are used on the Web today are WAV, MIDI and RA (Real Audio).
MIDI files prove to be very popular as they use little disk space.
HOW TO PUT 'SOUND' ON YOUR PAGE
-Linking it-
If you don't wish the console to appear on your page and you would prefer to give your viewer the choice of whether to load the music or not, make a direct link to YOUR directory where your sound is stored.
The source would be:
<A_HREF="name of your directory / name.mid"> Click to Hear Music </A> |
- Netscape Browser -
As far as I know, Internet Explorer 3.0 (4.70.1215) and above also support the <EMBED> tag.
- Work out where you want the console to appear (I prefer the bottom of the page).
- Type the source into your document: (note: _ represents a space)
<EMBED_SRC="name.mid"_WIDTH=150_HEIGHT=55_AUTOSTART="true"_LOOP="true"> |
name |
the name of your wav or midi.(if you are including a wav it would be .wav) |
Width/Height |
the width and height of the console to appear on your page.
(eg: the 'Crescendo' Player - Width=200, Height=55, Netscape - Width=150 Height=55) |
Autostart |
If you want your music to play automatically when your page has loaded, type "true". If you wish your music to play on viewers request, type "false" (this way the viewer can push play when they want) |
Loop |
If you wish your music to play continuously, type "true". If you wish the music to play once and then allow the viewer to restart at their request, type "false". |
- Microsoft Internet Explorer -
Using this source allows the Internet Explorer Browser Versions to hear the Music.
Follow the above instructions but instead of using the <EMBED SRC> tag, use the <BGSOUND> tag:
<BGSOUND SRC="name.mid" LOOP="100">
Alternatives could be name.wav and also LOOP="infinite".
- Both Browsers -
To make your sound compatible with most browsers (eg:Netscape and Microsoft Internet Explorer), use the following for the source in your document:
<EMBED_SRC="name.mid"_ WIDTH=150_ HEIGHT=55_AUTOSTART="true"_LOOP="true"></EMBED>
<NOEMBED>
<BGSOUND_SRC="name.mid"_LOOP="infinite">
</NOEMBED> |
This way either browsers won't get confused.
back to top
|