I’ve got this script for playing midi, where i can change the background of the midi player. But I also have this script for a random midi to play everytime the page is refreshed. Does anyone know how I can combine the two? I want to be able to play random midis, yet retain the ability to customise the background, and do away with the console’s controls (in this instance, Quicktime). Can anyone help? The codes are below.
[B]Midi player with customised background:
[CODE]<script> function stoperror(){ return true } window.onerror=stoperror </script><center><div style=visibility:hidden;position:absolute;top;>
<OBJECT ID=mp classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 type=application/x-oleobjectcodebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112 width=1 height=1>
<PARAM NAME=AutoRewind VALUE=true>
<PARAM NAME=Balance VALUE=0>
<PARAM NAME=AutoStart VALUE=true>
<PARAM NAME=ShowDisplay VALUE=false>
<PARAM NAME=ShowControls VALUE=false>
<PARAM NAME=ShowTracker VALUE=flase>
<PARAM NAME=PlayCount VALUE=0>
<PARAM NAME=FileName VALUE=”InuPics/Music/TokiOKoeruOmo01.mid”>
</OBJECT></div><table border=0 id=midi oncontextmenu=”return false” onselectstart=”return false” ondragstart=”return false” background=InuPics/Music/MidiPlayer01.gif width=108 height=55><tr>
<td style=”padding-left:4px; padding-top:27px;”>
<div style=height:20; width:50″>
<input type=button value=4 style=”font-size: 8pt; font-family: webdings; color:#588460; background:; border:0px none;cursor:hand” ONCLICK=mp.Play()><input type=button value=; style=”font-size: 8pt; font-family: webdings; color:#588460; background:; border:0px none;cursor:hand” ONCLICK=mp.Pause()><input type=button value=”<” style=”font-size: 8pt; font-family: webdings; color:#588460; background:; border:0px none;cursor:hand” ONCLICK=mp.Stop()></div>
[B]Random midi player
[CODE]<SCRIPT LANGUAGE=”JavaScript”>
// Courtesy of SimplytheBest.net – http://simplythebest.net/scripts/
<!– Begin
nummidi = 3
day = new Date()
z = day.getTime()
y = (z – (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummidi,10) + 1
if (x == (1))
midi=(“midi_1.mid”)
if (x == (2))
midi=(“midi_2.mid”)
if (x == (3))
midi=(“midi_3.mid”)
document.write(‘<EMBED SRC= ‘ + midi + ‘ autostart=true loop=true ‘)
document.write(‘volume=100 align=”center” width=50 height=25 controls=smallconsole>’)
// End –>
</SCRIPT>