Site hosted by Angelfire.com: Build your free website today!

<HEAD>
<BODY onLoad="setdone()">
<SCRIPT>
<!-- written by The Omega
// http://www.geocities.com/Area51/Corridor/4381
// the_omega@geocities.com
// You must leave these comments in to use the script
// (hey, I wrote it. Let me have a little credit!)
var qmid=new Array();
var qname=new Array();
var qtime=new Array();
qtime[0]=.1 // Do NOT change this line

numsongs=3 // Change the 3 to equal the number of songs above
qmid[1]="../midi/90291.mid" // The filename of the first song
qname[1]="90210 Theme" // The name of the first song
qtime[1]=100 // The number of seconds the first song lasts
qmid[2]="../midi/baywatch.mid" // ditto for the second song
qname[2]="Baywatch Theme"
qtime[2]=120
qmid[3]="../midi/chicagobull.mid" // and for the third...
qname[3]="Chicago Bulls Theme"
qtime[3]=60
/* To add more songs, just repeat the above three lines
and increase the number in [brackets] by one each time.
Also, don't forget to update numsongs above! */

function rndsong(){
var today=new Date();
today=today.getTime()/10;
today=(today%numsongs)+1;
location.href="select.htm?"+today+"x0"}

function playsong(today){
window.location.href="select.htm?"+today+"x0"}

function continuous(){
var today=new Date();
today=today.getTime()/10;
today=(today%numsongs)+1;
document.location="select.htm?0x"+today}

function nextsong(){
if(!done){
window.setTimeout("nextsong()",100)}
else{
var today=new Date();
today=today.getTime()/10;
today=(today%numsongs)+1;
document.location="select.htm?"+song2+"x"+today}}
function fastforward(){
if(done)
nextsong()}
function setdone(){
done=true}

done=false;
song1=0;song2=0;
param=location.search;
if(param.length>3){
n=param.substring(1,param.length);
p=n.indexOf("x");
song1=parseInt(n.substring(0,p));
song2=parseInt(n.substring(p+1,n.length))}
player='<CENTER><NOBR><EMBED SRC="'+qmid[song1]+'" WIDTH=144 HEIGHT=60 AUTOSTART=TRUE><BR>';
stopbut='<A HREF="select.htm" onMouseOver=\'window.status="Stop Song";return true\' onMouseOut=\'window.status="";return true\'><IMG SRC="stopsong.gif" WIDTH=15 HEIGHT=13 BORDER=0 ALIGN=RIGHT ALT="Stop Song"></A>';
songname='<FONT SIZE=1>'+qname[song1]+'</FONT></NOBR></CENTER>';
ffbut='<A HREF="javascript:;" onClick="fastforward();return false" onMouseOver=\'window.status="Next Song";return true\' onMouseOut=\'window.status="";return true\'><IMG SRC="nextsong.gif" WIDTH=15 HEIGHT=13 BORDER=0 ALIGN=RIGHT ALT="Next Song"></A>';
cacher='<EMBED SRC="'+qmid[song2]+'" HIDDEN=true AUTOSTART=false>';
if(song2==0){
ffbut='';
cacher=''}
if(song1==0){
player='<CENTER>Loading file<BR>Please wait...<BR><FONT SIZE=2>Script by <A HREF="mailto:the_omega@geocities.com">The&nbsp;Omega</A></CENTER>';
ffbut='';
stopbut='';
songname=''}

if((song1==0)&&(song2==0)){
document.writeln('<FORM NAME="songs"><NOBR>Choose a song:<BR><SELECT NAME="song">')
for(i=1;i<=numsongs;document.writeln("<OPTION>"+qname[i++]));
document.writeln('</SELECT><BR><A HREF="javascript:playsong(document.songs.song.selectedIndex+1);" onClick="playsong(document.songs.song.selectedIndex+1);return false;" onMouseOver=\'window.status="Play Song\";return true\' onMouseOut=\'window.status="";return true\'><IMG SRC="playsong.gif" WIDTH=50 HEIGHT=30 BORDER=0 ALT="Play Song"></A><A HREF="javascript:rndsong();" onClick="rndsong();return false;" onMouseOver=\'window.status="Random Song";return true\' onMouseOut=\'window.status="";return true\'><IMG SRC="randsong.gif" WIDTH=50 HEIGHT=30 BORDER=0 ALT="Random Song"></A><A HREF="javascript:continuous();" onClick="continuous();return false;" onMouseOver=\'window.status="Continous Play";return true\' onMouseOut=\'window.status="";return true\'><IMG SRC="contplay.gif" WIDTH=50 HEIGHT=30 BORDER=0 ALT="Continuous Play"></A></NOBR>')}
else{
document.writeln(player+ffbut+stopbut+cacher+songname)}
if(song2!=0){
window.setTimeout("nextsong()",qtime[song1]*1000)}
//-->
</SCRIPT>
<NOSCRIPT>Sorry, this won't work w/o JavaScript</NOSCRIPT>
</FORM>
</BODY>
</HTML>