Playing A Random Music File
This page demonstrates the use of the random music script. Every time
you view this page, a different music file will play.
How To Use
- Create a directory called midis for midi files.
- They must end in .mid
Put nothing else in this directory,
- Create a directory called mods for mod files
- They must end in .mod, .stm, or .xm(lowercase)
Put nothing else in this directory.
To use this in E-mail, just embed the following MUSIC file link
in your email:
<embed src="http://YOURDOMAIN.COM/cgi-bin/random-music.cgi" width="0" height="0"
autostart="true" loop="true"> <noembed><bgsound
src="http://YOURDOMAIN.COM/cgi-bin/random-music.cgi" loop="true">
</noembed></embed>
Remember it is random.....and plays both directories...
so you may hear more than one of one kind or another....
If you want more mods to play;have 2 in the midis directory
and 20 in the mods directory and vice versa.
Now, IF you want the music to play on a website HTML file: insert following code into your html file:
<embed src="/cgi-bin/random-music.cgi" width="0" height="0"
autostart="true" loop="true"> <noembed><bgsound
src="/cgi-bin/random-music.cgi" loop="true">
</noembed></embed>
MSNTV NOT AT ARBOR HOSTING:
You should have in your main directory
a directory of midis.....called midis
a directory of mods...called mods
and the cgi script for the music player
Then this in your sigbox
<embed src="http://YOURDOMAIN.COM/cgi-bin/random-music.cgi" width="0" height="0"
autostart="true">