View Full Version : argg... PROBLEMS WITH PLAYLIST


x0xshortayycx0x
11-08-2004, 02:46 AM
one song plays for both choices (of the songs). it will never have both songs play for their own titles. it`s hard to explain, it`s so annoying! (if you need an example: www.xanga.com/oOx_chRiisTa_xOo) both URL`s are correct, so i don`t see what the problem is cuz one time the one song plays, and another time, the other song plays. here`s the code anyways: (please help!!)

<!-- 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>
</p>
<form name="form">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 160; COLOR: #00000; font-face: verdana; height:174" name="playlist" size="1">
<option value="0">JojO- brEeZy</option>
<option value="1">LL c0ol j- heaDspRung</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
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/25873/29488_1_1_04.asf"
songs[1]="http://spencer.idjmg.com/www2/av/go.wax?num=6556045399&pt=url&xdata=0_17102802&s=0&b=&zz=a.asx"

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 -->

x0xshortayycx0x
11-08-2004, 02:53 AM
and the playlist that is listed above that jinglebellz posted doesn`t even work for me... what is this?! :mad:

coneblue45
11-09-2004, 01:03 AM
yeah mine doesn't work either, the dark console thing? Here's my code:

<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:#000000; WIDTH: 180; COLOR: #ffffff; font-face: arial; height:174" name="playlist" size="1">
<option value="0">Let Me Love You~ Mario</option>
<option value="1">If I Ain't Got You~ Alicia Keys</option>
<option value="2">Drop It Like It's Hot~ Snoop Dog ft. Pharrell</option>
<option value="3">U Saved Me~ R Kelly</option>
<option value="4">Frontin'~ Pharrell</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://media.bmgonline.com/jrecords.com/mario/video/let_me_love_you_128.ram";
songs[1]="http://cam2005.com/MusicGallery/variety/alicia%20keys-06-if%20i%20aint%20got%20you-whoa.wma
";
songs[2]="http://boss.streamos.com/wmedia/geffen/snoop_dogg/video/rhythm-n-gangsta-the-masterpiece/drop-it-like-its-hot_original/300_hi.asx?siteid=as
";
songs[3]="http://media.bmgonline.com/jiverecords.com/r_kelly/video/u_saved_me_128.asx";
songs[4]="http://ftp.bbc.co.uk/1xtra/realmedia/frontin_video.ram
";

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>

can someone please help us???:( :crying:

x0xshortayycx0x
11-10-2004, 08:16 PM
i know right! i really need help with that... i still didn`t get it

vanillacokemeeh
11-11-2004, 07:50 AM
read the rules, simply just copy the code provided by the nice moderator, and replace the URL with your own. its not that hard..

litoSwimgrl
11-13-2004, 07:43 PM
Yea! That's what i did! But i click 'Play' and it doesn't play! =\ It doesn't work for me! :confused:

x0xshortayycx0x
11-14-2004, 09:35 PM
read the rules, simply just copy the code provided by the nice moderator, and replace the URL with your own. its not that hard..

haha nice little "it`s not that hard"... anyway, yes, obviously i did try that, and the code still isn`t working. it randomly plays one of the two songs no matter which one i click to say play.