PDA

View Full Version : Midi Music wont play



wwe247365
10-11-2005, 02:12 PM
Hi there

I was wondering if you guys could have a look at this code for me? it is from my board on "Runboard". This code will no longer work on my board due to Javascript being disabled.
I was wondering if someone could please help me? Does anyone know any non Javascipt codes that could play this music and would work on my site?<center>

My Website (http://com5.runboard.com/bwwejunkies)


<p class="nav"></p>
<p class="menubottom">

<object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<param NAME VALUE>
<param NAME="ShowControls" VALUE="0">
<param NAME="ShowStatusBar" VALUE="0">
<param NAME="ShowDisplay" VALUE="0">
<param NAME="DefaultFrame" VALUE="Slide">
<param NAME="Autostart" VALUE="1">
<param NAME="Loop" VALUE="True">
</object><form name="form">
<select style="FONT-SIZE: 8pt; BACKGROUND:#0000ee ; WIDTH: 155px; COLOR: #A8A8A8; font-face: Comic Sans MS" name="playlist" size="1">
<option value="0">Raw Theme</option>
<option value="1">Smackdown Theme</option>
<option value="2">HHH Theme</option>
<option value="3">Batista Theme</option>
<option value="4">R Flair Theme</option>
<option value="5">Vince Mc Theme</option>
<option value="6">R Orton Theme</option>
</select>
</center>
<center>

<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">

<input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.Pause(); playstate=2;">

<input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.Stop(); playstate=2;"></p>
</form>
<script language="JavaScript">
<!--
var playstate = 1;
shuffle = 1; // set to 0 to always play first song in list
// set to 1 to randomly choose the first song to play
songs=new Array();
songs[0]="http://media.putfile.com/raw35";
songs[1]="http://media.putfile.com/smackdown93";
songs[2]="http://media.putfile.com/TRIP4377";
songs[3]="http://media.putfile.com/batista13";
songs[4]="http://media.putfile.com/flair19";
songs[5]="http://media.putfile.com/vince52";
songs[6]="http://media.putfile.com/RKO89";

if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.darkplayer.FileName = songs[randsg];
document.darkplayer.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.darkplayer.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.darkplayer.FileName = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
}
//-->
</script>

</center>



Thank you for your time.