playlist help, adding songs |
playlist help, adding songs |
![]()
Post
#1
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Feb 2005 Member No: 95,235 ![]() |
so i've read about 50 different posts about playlists but cant find one that addresses my problem...
when i try to add more songs to my playlist (more than what the original code had) none of my songs will play... anyone know what im doing wrong? here's the code im using... when i try to add song 6+ the whole playlist stops working [CODEBOX] <!-- 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">I can't read you</option> <option value="1">Loser</option> <option value="2">Let Go</option> <option value="3">Lonely No More</option> <option value="4">Brand New Day</option> <option value="5">Somebody Like You</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/23610/26452_1_6_04.asf" songs[1]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/7/7144_1_1_04.asf " songs[2]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/25703/29990_1_1_04.asf " songs[3]=" http://radionow931.com/av/audio/rob_thomas_lonely.asx"; songs[4]=" http://a420.v8383d.c8383.g.vm.akamaistream...8492_1_5_04.asf "; songs[5]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/3/9639/27513_1_1_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> <!-- end code provided by createblog.com --> |
|
|
![]() |
![]()
Post
#2
|
|
![]() mmm hmmm ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,591 Joined: Sep 2004 Member No: 47,325 ![]() |
yea it must be something wrong with ur codes. I can't really tell what exactly it is but if you look around your songs some of the tags look different from the others.. like you have an ; sign in some places. I suggest you start over and when you add new songs make sure you don't delete some other codes or something.. gotta be really careful.
|
|
|
![]()
Post
#3
|
|
![]() Um....Its meeee ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,218 Joined: Mar 2004 Member No: 8,264 ![]() |
try it now?
|
|
|
![]()
Post
#4
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Feb 2005 Member No: 95,235 ![]() |
thanks a bunch! it works now! have a great day!
|
|
|
![]()
Post
#5
|
|
![]() mmm hmmm ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,591 Joined: Sep 2004 Member No: 47,325 ![]() |
|
|
|
![]() ![]() |