Midaia
03-23-2006, 08:59 AM
Could anyone tell me what is wrong with my HTML? It won't play and shows "error on page."
<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>
</p>
<form name="form">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 215; COLOR: #00000; font-face: verdana; height:174" name="playlist" size="1">
<option value="0">I Shall Believe - Sheryl Crow</option>
<option value="1">Some Will Seek Forgiveness - Underoath</option>
<option value="2">Boondocks - Little Big Town</option>
<option value="3">Phantom of the Opera</option>
<option value="4">Strange and Beautiful - Aqualung</option>
<option value="5">Come Thou Fount - David Crowder</option>
<option value="6">Smelly Cat</option>
<option value="7">Jellyhead</option>
<option value="8">Wonderwall - Oasis</option>
<option value="9">King Without a Crown - Matisyahu</option>
</select><br>
<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
// www.xanga.com/smartypants91780
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="http://www.filelodge.com/files/room12/300372/09%20I%20Shall%20Believe.wma"
songs[1]="http://www.filelodge.com/files/room12/300372/Underoath%20-%20Some%20Will%20Seek%20Forgiveness%2C%20Others%20 Escape.mp3"
songs[2]="http://www.filelodge.com/files/room12/300372/Little%20Big%20Town%20Boondocks.mp3"
songs[3]="http://www.filelodge.com/files/room12/300372/Blink%20182%20Phantom%20of%20the%20Opera.mp3"
songs[4]="http://www.filelodge.com/files/room12/300372/Aqualung%20%20Strange%20And%20Beautiful.mp3"
songs[5]="http://www.filelodge.com/files/room12/300372/Come%20Thou%20Fount.mp3"
songs[6]="http://www.filelodge.com/files/room12/300372/Smelly%20Cat%20by%20Phoebe.mp3"
songs[7]="http://www.filelodge.com/files/room12/300372/14%20Jellyhead.wma"
songs[8]="http://www.filelodge.com/files/room12/300372/03%20Wonderwall.wma"
songs[9]="http://www.filelodge.com/files/room12/300372/King%20Without%20A%20Crown.mp3">King Without A Crown.mp3"
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>
<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>
</p>
<form name="form">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 215; COLOR: #00000; font-face: verdana; height:174" name="playlist" size="1">
<option value="0">I Shall Believe - Sheryl Crow</option>
<option value="1">Some Will Seek Forgiveness - Underoath</option>
<option value="2">Boondocks - Little Big Town</option>
<option value="3">Phantom of the Opera</option>
<option value="4">Strange and Beautiful - Aqualung</option>
<option value="5">Come Thou Fount - David Crowder</option>
<option value="6">Smelly Cat</option>
<option value="7">Jellyhead</option>
<option value="8">Wonderwall - Oasis</option>
<option value="9">King Without a Crown - Matisyahu</option>
</select><br>
<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
// www.xanga.com/smartypants91780
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="http://www.filelodge.com/files/room12/300372/09%20I%20Shall%20Believe.wma"
songs[1]="http://www.filelodge.com/files/room12/300372/Underoath%20-%20Some%20Will%20Seek%20Forgiveness%2C%20Others%20 Escape.mp3"
songs[2]="http://www.filelodge.com/files/room12/300372/Little%20Big%20Town%20Boondocks.mp3"
songs[3]="http://www.filelodge.com/files/room12/300372/Blink%20182%20Phantom%20of%20the%20Opera.mp3"
songs[4]="http://www.filelodge.com/files/room12/300372/Aqualung%20%20Strange%20And%20Beautiful.mp3"
songs[5]="http://www.filelodge.com/files/room12/300372/Come%20Thou%20Fount.mp3"
songs[6]="http://www.filelodge.com/files/room12/300372/Smelly%20Cat%20by%20Phoebe.mp3"
songs[7]="http://www.filelodge.com/files/room12/300372/14%20Jellyhead.wma"
songs[8]="http://www.filelodge.com/files/room12/300372/03%20Wonderwall.wma"
songs[9]="http://www.filelodge.com/files/room12/300372/King%20Without%20A%20Crown.mp3">King Without A Crown.mp3"
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>