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 (1 - 6)
Angel_Cece
post Dec 31 2004, 08:43 PM
Post #2


¢¾ Wanting it. ¢¾
******

Group: Member
Posts: 2,060
Joined: Aug 2004
Member No: 39,234



the first 3 u have are mp3's u need all of them to be asf... i think. look at my xanga. all of them work. somethings wrong with the songs.. maybe??
 
MewxIchigo
post Dec 31 2004, 11:31 PM
Post #3


All i want is a HERO to be there for me...is it too much to ask?
****

Group: Member
Posts: 287
Joined: Nov 2004
Member No: 66,293



i dun think the songs work...
 
musicjunkie
post Jan 2 2005, 09:26 AM
Post #4


That one dude with the headphones
***

Group: Member
Posts: 40
Joined: Jan 2005
Member No: 78,015



Yea they all have to be .asf, i have an 80 something drop down list and every single one of them is .asf so i am very certain your problem lies in that, just find the same songs in .asf and you should be good
 
mezzanine
post Jan 2 2005, 06:27 PM
Post #5


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.
 
Crabshrapnel
post Jan 3 2005, 08:38 PM
Post #6


Newbie
*

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



thanks a ton! that changing of "song" to "songs" did it. I hope this has helped out anyone else that might have made a stupid mistake like I did. Lesson learned!
 
sherryvu
post Jan 3 2005, 10:27 PM
Post #7


Senior Member
*******

Group: Member
Posts: 3,826
Joined: Jan 2004
Member No: 2,330



QUOTE(Crabshrapnel @ Jan 3 2005, 7:38 PM)
thanks a ton! that changing of "song" to "songs" did it. I hope this has helped out anyone else that might have made a stupid mistake like I did. Lesson learned!
*

problem solved _smile.gif

[ topic closed ]
 

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