Log In · Register

 
help! Player not working
piyoko_analogue
post Jun 10 2007, 05:11 PM
Post #1


Newbie
*

Group: Member
Posts: 6
Joined: Jun 2006
Member No: 424,681



my darkplayer won't work now. could anyone help me? my code is below
CODE

<!-- begin code provided by createblog.com -->
<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:#ffffff; WIDTH: 171; name="playlist" size="1">

<!-- Add song info here -->
<option value="0">// Tell That Mick</option>

<option value="1">// Dead On Arrival</option>
<option value="2">// Grand Theft Autumn</option>
<option value="3">// Saturday</option>
<option value="4">// Homesick At Spacecamp</option>
<option value="5">//Sending Postcards</option>
<option value="6">//Chicago is so</option>

<option value="7">//The Pros And Cons</option>
<option value="8">//Grenade Jumper</option>
<option value="9">//Calm Before The Storm</option>
<option value="10">//Reinventing The Wheel </option>
<option value="11">//The Patron Saint </option>
<option value="12">//Snitchers and Talkers </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
songs=new Array();

// Add song URLs here
songs[0]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/01%20Tell%20That%20Mick%20He%20Just%20Made%20My%20Li.mp3";
songs[1]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/02%20Dead%20On%20Arrival.mp3";
songs[2]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/03%20Grand%20Theft%20Autumn_Where%20Is%20Your.mp3";
songs[3]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/04%20Saturday.mp3";
songs[4]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/05%20Homesick%20At%20Spacecamp.mp3";
songs[5]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/06%20Sending%20Postcards%20From%20A%20Plane%20Cr.mp3";
songs[6]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/07%20Chicago%20Is%20So%20Two%20Years%20Ago.mp3";
songs[7]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/08%20The%20Pros%20And%20Cons%20Of%20Breathing.mp3";
songs[8]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/09%20Grenade%20Jumper.mp3";
songs[9]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/10%20Calm%20Before%20The%20Storm.mp3";
songs[10]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/11%20Reinventing%20The%20Wheel%20To%20Run%20Myse.mp3";
songs[11]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/12%20The%20Patron%20Saint%20Of%20Liars%20And%20Fak.mp3";
songs[12]="http://filexoom.com/files/2007/6/1/77077/My%20Documents/snitches%20and%20talkers%20get%20stitches%20and%20walkers.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>
<!-- end code provided by createblog.com -->
 

Posts in this topic
Dejiko   help! Player not working   Jun 10 2007, 05:11 PM
Dejiko   anyone help me?   Jun 10 2007, 05:18 PM
Synesthesia   Please don't double-post if your problem isn...   Jun 10 2007, 05:50 PM
digitalfragrance   Your mp3 URLs may be broken - try checking those f...   Jun 11 2007, 09:30 AM
stormbringer   if you think it's the players fault, then just...   Jun 29 2007, 01:55 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: