View Full Version : i'm sorry but i still cant get my drop down music player to work


oOLaurrenOo
02-20-2005, 11:31 PM
I know there have been a lot of posts about this but i still can't seem to get my music player to work! i have followed all the directions and i don't know what's wrong!..does anyone know what's the matter?


<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">
<center>
<select style="FONT-SIZE: 8pt; BACKGROUND:#FC8C8C; WIDTH: 180; COLOR: #000000; font-face: arial; height:174" name="playlist" size="1">
<option value="0">Ciara- 1, 2 Step</option>
<option value="1">Green Day- Boulevard of Broken Dreams</option>
<option value="2">Eminem- Mockingbird</option>
<option value="3">50 Cent- Candy Shop</option>
<option value="4">Gwen Stefani- Rich Girl</option>
<option value="5">Jesse McCartney- Beautiful Soul</option>
</select>
<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://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/25992/29948_1_2_04.asf";
songs[1]="http://www.warnermusic.com.au/greenday/americanidiot/brokendreams.asx";
songs[2]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/3397/30252_1_16_04.asf";
songs[3]="http://www.angelfire.com/stars5/geesalas0/cslsrapperettes_candyshop_1_.mp3";
songs[4]="http://2720.rabidhosting.com/cgi-bin/stp.cgi?stp=/4/26307/30202_1_2&band=high";
songs[5]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/25716/29548_1_11_04.asf";

if (shuffle == 1) {
var randsg = Math.floor(Math.random()* songs.length);
document.darkplayer.FileN ame = 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.FileN ame = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
}
//-->
</script>

THANK YOU! :)

SwimminSweetie8
02-21-2005, 04:39 AM
I tried your code on my xanga and it didn't work for me either. It might be because of where you get your codes because when my darkplayer wouldn't work for me I just got my codes from a different site and it worked. I will give you the code I use on my xanga that works fine for me:

<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">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#ff99cc; WIDTH: 180; COLOR: #000000; font-face: arial; height:174" name="playlist" size="1">
<option value="0">SONG TITLE</option>
<option value="1">SONG TITLE</option>
<option value="2">SONG TITLE</option>
<option value="3">SONG TITLE</option>
<option value="4">SONG TITLE</option>
<option value="5">SONG TITLE</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();
songs[0] ="SONG URL";
songs[1] ="SONG URL";
songs[2] ="SONG URL";
songs[3] ="SONG URL";
songs[4] ="SONG URL";
songs[5] ="SONG URL";


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>


You might want to try that code with the music codes your using and if that still doesn't work I would suggest finding a different site to get the music from. Sorry if I couldn't help you.

oOLaurrenOo
02-21-2005, 05:06 PM
Thank you so much! :)