my drop down music list wont work!!!, pleeeeease help me |
![]() ![]() |
my drop down music list wont work!!!, pleeeeease help me |
Jun 24 2005, 07:58 PM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Jun 2005 Member No: 159,231 |
my music drop down list thingy wont work. everytime i press play, the status bar or w/e says error on page. i know all my music url's are right, why wont it play???!!! i know im supposed to use a code box for this, but i dont know how, im new. this is 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> </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">its been awhile-staind</option><br/> <option value="1">let me go-3 doors down</option><br/> <option value="2">open your eyes-staind</option><br/> <option value="3">when im gone-3 doors down</option><br/> <option value="4">take it-staind</option><br/> <option value="5">brain stew-green day</option><br/> <option value="6">when i come around-green day</option><br/> <option value="7">pardon me-incucbus</option><br/> <option value="8">one step closer-linkin park</option><br/> <option value="9">in the end-linkin park</option><br/> <option value="10">headstrong-trapt</option><br/> <option value="11">schism-tool</option><br/> <option value="12">hangin by a moment-lifehouse</option><br/> <option value="13">longview-green day</option><br/> <option value="14">numb-linkin park</option><br/> </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><!-- 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://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/3/3870/21597_1_4_05.asf";<br/> songs[1]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/9628/30728_1_3_05.asf";<br/> songs[2]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/3/3870/21597_1_1_05.asf";<br/> songs[3]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/9628/26909_1_1_05.asf";<br/> songs[4]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/3/3870/21597_1_13_05.asf";<br/> songs[5]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/301/24090_1_10_05.asf";<br/> songs[6]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/301/24090_1_6_05.asf";<br/> songs[7]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/1/2239/9775_1_12_05.asf";<br/> songs[8]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/16216/17128_1_2_05.asf";<br/> songs[9]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/16216/17128_1_8_05.asf";<br/> songs[10]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/3/23963/26847_1_1_05.asf";<br/> songs[11]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/336/21710_1_5_05.asf";<br/> songs[12]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/4/16937/18046_1_1_05.asf";<br/> songs[13]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/301/24090_1_3_05.asf";<br/> songs[14]="http://a425.v8384d.c8384.g.vm.akamaistream.net/7/426/8384/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/16216/27461_1_13_05.asf";<br/> 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; } //--> someone please help me, this is driving me crazy, ive tried everything!!! |
|
|
|
Jun 24 2005, 08:13 PM
Post
#2
|
|
![]() moohaha ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,214 Joined: Aug 2004 Member No: 41,985 |
make sure your music urls are workin and u forgot to end your playlist
to use a code box just click the codebox buttons before and after your script |
|
|
|
Jun 24 2005, 08:29 PM
Post
#3
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Jun 2005 Member No: 159,231 |
that didnt work. it still says error at the bottom and wont play my songs. someone pleeeeeeez help!!!!!!!!!!
|
|
|
|
Jun 24 2005, 08:51 PM
Post
#4
|
|
![]() define our lives for us. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
what's with the <br/>'s? Remove all of them then see what happens.
|
|
|
|
Jun 24 2005, 08:58 PM
Post
#5
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Jun 2005 Member No: 159,231 |
ok i did that too. its still not working!! heres my xanga:
www.xanga.com/miss_understood_891 please see what i mean. its still not working. someone, please help me |
|
|
|
Jun 24 2005, 08:59 PM
Post
#6
|
|
![]() Im Gavin HI!! ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 802 Joined: Mar 2005 Member No: 111,644 |
well all of your music's are .net akaims all of those were closed down a long time ago. You will have to find new urls. I will search for any other errors.
|
|
|
|
Jun 24 2005, 09:04 PM
Post
#7
|
|
![]() define our lives for us. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 11,656 Joined: Aug 2004 Member No: 43,293 |
^ Actually, no. The music I have on my site right now is from them. If you go to a music site that hasn't updated their new links (such as omg_music, I think musicURL, xange3ermusic) they wont work. You have to get your new URLs directly from http://www.cdzinc.com because I did and it works. =)
|
|
|
|
Jun 25 2005, 12:46 PM
Post
#8
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Jun 2005 Member No: 159,231 |
thank you sooooo much!! my playlist is working now. i used the cdzinc links, and its working perfect, thank you so much!! you're great! <3
|
|
|
|
![]() ![]() |