Here's a script which plays any number
of random midi's one after another.
<SCRIPT TYPE="text/javascript">
/*************************************
written by:WillyDuitt@hotmail.com
http://www.angelfire.com/art/img/
var numsong equals number of songs
midi=(your song url)
song=(your song title)
time=(number of seconds song plays)
URL=(your midiplayer addy)
**************************************/
var numsong=6
play=Math.round(Math.random()*numsong)
if (play == 1)
{
midi=("BlueJeans.mid")
song=("Baby Got Her Bluejeans On")
time=("200")
}
else if (play == 2)
{
midi=("BootSctn.mid")
song=("Boot Scootin'")
time=("200")
}
else if (play == 3)
{
midi=("GoodbyeEarl.mid")
song=("GoodBye Earl")
time=("250")
}
else if (play == 4)
{
midi=("HighwayMan.mid")
song=("Highway Man")
time=("180")
}
else if (play == 5)
{
midi=("Trouble.mid")
song=("There's Your Trouble")
time=("190")
}
else if (play == 6)
{
midi=("Wabash.mid")
song=("Wabash Cannonball")
time=("150")
}
document.write('<meta http-equiv="refresh" content="' + time + ';URL=http://YOUR MIDIPLAYER URL">');
document.write('<EMBED SRC= "' + midi + '" HIDDEN="TRUE" AUTOSTART="TRUE" LOOP="FALSE" VOLUME="100%">');
document.write('<br>Now Playing: ' + song + ' ');
</SCRIPT>
An example can be found here:
http://transload.net/~cyberrite/Will...iPlayer3.shtml