Log In · Register

 
Drop-down playlist problems, can't create more than 10 songs
Crabshrapnel
post Dec 31 2004, 08:41 PM
Post #1


Newbie
*

Group: Member
Posts: 2
Joined: Dec 2004
Member No: 77,328



I really don't get it, the first 10 songs on my drop-down list work when I press play, any song after 10 doesn't work. What's the deal?


<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="Flase">
</object>
<form name="form">
<select name="playlist" size="1">

<!-- Add song info here -->
<option value="0">STOP</option>
<option value="1">My Chemical Romance - I'm Not Okay (I Promise)</option>
<option value="2">Robin Williams - Live at the Met</option>
<option value="3">Quiet Roit - Cum on feel the noize</option>
<option value="4">Foo Fighters - The One</option>
<option value="5">My Chemical Romance - To The End</option>
<option value="6">Blink 182 - Adam's Song</option>
<option value="7">Alkaline Trio - Blue Carolina</option>
<option value="8">The Ataris - This Diary</option>
<option value="9">Brand New - Sic Transit Gloria...Glory Fades</option>
<option value="10">Foo Fighters - Overdrive</option>
<option value="11">Incubus - Here In My Room</option>
<option value="12">Greenday - You Lied</option>
<option value="13">Guns and Roses - Welcome to the Jungle</option>

</select>
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
</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]="";
songs[1]="http://download.wbr.com/totalassault/05-I'm_Not_Okay_(I_Promise).mp3";
songs[2]="http://134.53.40.1/dms/Servepd/RWilliams/robin%20williams%20-%20live%20at%20the%20met.mp3";
songs[3]="http://www.nicemice.net/amc/music/songs/quiet-riot/cum-on-feel-the-noize/clip.mp3";
songs[4]="http://www.rcarecords.com/media/foo_fighters/audio/the_one_32.asx";
songs[5]="http://www.warnerreprise.com/asx/mychemicalromance_totheend-audio_128-a.asx?pageid=av-results-in-player-wrapper";
songs[6]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/3/237/4383_1_7_04.asf";
songs[7]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/11972/28668_1_9_04.asf";
songs[8]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/5490/27368_1_3_04.asf";
songs[9]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/1/24769/28069_1_2_04.asf";
song[10]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/37/26920_1_9_04.asf";
song[11]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/2239/28836_1_13_04.asf";
songs[12]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/301/26039_1_3_04.asf";
songs[13]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/749/10469_1_4_04.asf";

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>
 
 
Start new topic
Replies
mezzanine
post Jan 2 2005, 06:27 PM
Post #2


i am displaced.
****

Group: Member
Posts: 100
Joined: Aug 2004
Member No: 44,860



you don't have to have .asf they just work the best. your problem may be consistency... in front of your links to the songs there are these things...

songs[8]="URL"........

you know? and for some you have SONG instead of SONGS. that might be the problem.


try changing all of them to SONGS.
 

Posts in this topic


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