Play Random MID

[Total: 0    Average: 0/5]

This shows how to have a random MID file start playing.

Body Code:

<br>
<center>
<br><b><font color=red>Random selection base on time of a mid file</font>
<hr>
<script LANGUAGE="JavaScript">
var NumberOfAds = 3;
var now = new Date()
var sec = now.getSeconds()
var AdNumber = sec % NumberOfAds;
AdNumber +=1;
if (AdNumber==1)

{

 url="<embed src=2.mid autostart=yes width=20% height=20% loop=true control=60 control=console> ";

}

if (AdNumber==2)

{
 url="<embed src=1.mid autostart=yes width=50% height=50% loop=true control=60 control=console> ";

}
if (AdNumber==3)

{
 url="<embed src=3.mid autostart=yes  width=100% height=50% loop=true control=60 control=console> ";

}


document.write (url) ;



</script>

Times Viewed: 2

Leave a Reply

Your email address will not be published. Required fields are marked *