Sound Playing
Sound files can be played in three different ways:
1. Using HREF links
The sound files (WAV, MIDI and MP3) are played using normal <A HREF links as this:
<A HREF="mysound.wav" TARGET="LOOP=2 SHOW">Play sound</A>
The sound toolbar shown above, will be displayed only if the SHOW modifier is included in the TARGET parameter, as in the example above
The TARGET parameter can also be used to specify the LOOP option:
TARGET=LOOP=-1 | -2 | n
-1 will replay the sound while the page is loaded.
-2 will replay the sound until another sound is called.
n will replay the sound n times
Otherwise the sound will play only once.
E.g.:
<A HREF SRC="mysound.mp3" TARGET="LOOP=2 SHOW"
This will play the sound 2 times and the sound toolbar will be visible to a user. When the users moves to another page, the sound will be stopped unless LOOP=-2 is specified.
2. Playing sounds automatically
Sounds can also be added using the BGSOUND tag:
<BGSOUND> SRC=wav, mp3 or midi file LOOP=-1 | -2 | n
-1 will replay the sound while
the page is loading.
-2 will replay the sound until
another sound is called.
n will replay the sound n
times
Otherwise the sound will play only once.
The sound toolbar will not be visible to a user.