Music playlist autostart NOT working!!!, The autostart on my music list is not working anymore and I have no id |
Music playlist autostart NOT working!!!, The autostart on my music list is not working anymore and I have no id |
Apr 17 2006, 07:50 PM
Post
#1
|
|
![]() Dragonfly_babe ![]() ![]() ![]() ![]() Group: Member Posts: 274 Joined: Dec 2005 Member No: 337,380 |
I've had a drop down music menu player on my xanga for a long time now and one day I saw a script on createblog that has buttons that let you shuffle through the songs. I replaced my old script for this new one and when I tried it my songs weren't playing??
So i gave up and put my old script back in but the songs aren't playing. It works and everything but it used to be that when u come to my xanga a song starts to play automatically. Now it only plays when u click "play" on the menu. I checked the code to see if the autostart was off but it should be starting automatically??? Does anyone know why it could be doing this I even tried different playlist scripts but with the same result. Is there something on my site that could be affecting it?? QUOTE <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"> <select name="playlist" size="1"> <!-- Add song info here --> <option value="0">Daybreak</option> <option value="1">Hello</option> <option value="2">Sunday</option> <option value="3">Come</option> <option value="4">Still alone</option> <option value="5">Glaring dream</option> <option value="6">Surreal</option> <option value="7">Re-write</option> <option value="8">Cape of storms</option> <option value="9">Naturally</option> <option value="10">Loop & Loop</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(); // Add song URLs here songs[0]="http://lrac.peaceandska.com/music/ayumi%20hamasaki%20-%20Daybreak.mp3"; songs[1]="http://hellohyde.tripod.com/hyde_-_hello.mp3"; songs[2]="http://absolutayumi.free.fr/akfg/05%20-%20Asian%20Kung-Fu%20Generation%20-%20Sunny%20Day.mp3"; songs[3]="http://endlesspower.net/Music/InuYasha/Come.mp3"; songs[4]="http://marshal.proc.ru/mp3/j-pop/20030630/Ayumi%20Hamasaki%20-%20still%20alone.mp3"; song[5]="http://juria.murai3.free.fr/zik/mp3/anime/Gravitation%20-%20Glaring%20Dream.mp3"; songs[6] ="http://lrac.peaceandska.com/music/Ayumi_Hamasaki-SURREAL.mp3"; songs[7]="http://cornik.free.fr/01%20Rewrite.mp3"; songs[8]="http://roentge4.tripod.com/roentge9-10/09_THE_CAPE_OF_STORMS.mp3"; songs[9]="http://www.siegedom.com/Files/Sound/05-ayumi_hamasaki-naturally_wippenberg_remix.mp3"; songs[10]="http://absolutayumi.free.fr/akfg/01%20-%20Loop%20&%20Loop.mp3"; 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> I'd really appreciate the help anyone has to offer |
|
|
|
![]() |
| *digital.fragrance* |
Apr 17 2006, 07:54 PM
Post
#2
|
|
Guest |
Instead of "1" put "true"
|
|
|
|
Apr 17 2006, 07:56 PM
Post
#3
|
|
![]() Dragonfly_babe ![]() ![]() ![]() ![]() Group: Member Posts: 274 Joined: Dec 2005 Member No: 337,380 |
|
|
|
|
| *digital.fragrance* |
Apr 17 2006, 07:58 PM
Post
#4
|
|
Guest |
Aha - I found the error
Your 5th song reads "Song[5]" - add an 's' - "Songs[5]" |
|
|
|
Apr 17 2006, 08:04 PM
Post
#5
|
|
![]() Dragonfly_babe ![]() ![]() ![]() ![]() Group: Member Posts: 274 Joined: Dec 2005 Member No: 337,380 |
Aha - I found the error Your 5th song reads "Song[5]" - add an 's' - "Songs[5]" Thanks that fixed it!! |
|
|
|
| *digital.fragrance* |
Apr 17 2006, 08:19 PM
Post
#6
|
|
Guest |
It's okay - I've had the same problem, so I just know what to look for..
Glad it worked out! Topic Closed |
|
|
|
![]() ![]() |