Darkplayer Drop Down Box Help |
Darkplayer Drop Down Box Help |
Aug 15 2004, 05:18 PM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 6 Joined: Aug 2004 Member No: 40,654 |
hey..
on my xanga... i have a darkplayer with 4 songs... theres a drop down box... and i edited the code to show the names... but the songs just play randomly when the xanga comes up... and when you select a different song... it wont change CODE <!-- 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="44" standby="Loading Microsoft Windows Media Player components..." width="195" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"><PARAM NAME="transparentatStart" VALUE="true"> </object> <form name="form"> <p style="text-align: center"> <select style="FONT-SIZE: 8pt; BACKGROUND:#000000; WIDTH: 200px; COLOR: #00CCFF; font-face: arial" name="Yellowcard Songs" size="1"> <option value="0">Only One</option> <option value="1">Way Away</option> <option value="2">Ocean Ovenue</option> <option value="3">Breathing</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(); songs[0]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/24962/28398_1_6_04.asf"; songs[1]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/24962/28398_1_1_04.asf"; songs[2]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/24962/28398_1_3_04.asf"; songs[3]="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/24962/28398_1_2_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 --> Heres my xanga if u wanna see how the problem works: XavierFactor11's Xanga Page Any help is appreciated |
|
|
|
![]() |
Aug 16 2004, 12:55 PM
Post
#2
|
|
|
Stalking Createblog... ![]() ![]() ![]() ![]() Group: Member Posts: 155 Joined: Jan 2004 Member No: 1,300 |
CODE <!-- begin code provided by createblog.com --> 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 <!-- end code provided by createblog.com --> By the way, did you change that to 0? Make sure you do that. |
|
|
|
chrisrix16 Darkplayer Drop Down Box Help Aug 15 2004, 05:18 PM
matthufham edit: nevermind, here's mine
CODE<!--... Aug 15 2004, 05:26 PM
chrisrix16 so what do i take out to stop the random play and ... Aug 15 2004, 06:41 PM
JlIaTMK if im correct then u have to take out this part an... Aug 15 2004, 06:55 PM
chrisrix16 Ok now I got the drop down to work thanks matt for... Aug 15 2004, 07:43 PM
Just AJ For the blended buttons: You're lucky, on my X... Aug 16 2004, 07:23 AM
chrisrix16 Ive been messing with the code part that AJ was ta... Aug 16 2004, 05:59 PM
chrisrix16 Can I see the code to yours AJ to compare by the w... Aug 16 2004, 06:04 PM
matthufham @ just-aj, lol you can't bold inside coded scr... Aug 16 2004, 06:13 PM
chrisrix16 The stuff on my xanga is from ur code matt... beca... Aug 16 2004, 06:52 PM![]() ![]() |