music.. |
![]() ![]() |
music.. |
Aug 24 2004, 10:00 PM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 30 Joined: Jul 2004 Member No: 31,640 |
AHH
<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"> <p style="text-align: center"> <select style="FONT-SIZE: 8pt; BACKGROUND:EE30A7; WIDTH: 260px; COLOR: #white; font-face: verdana" name="playlist" size="1"> <option value="1">First Date by Blink 182</option> <option value="2"> Shadow By Ashlee Simpson</option> <option value="3">Dirrrrty By Christina Aguilera</option> <option value="4">Touch Me By The Doors</option> <option value="5">Basket Case By Green Day</option> <option value="6">The Middle By Jimmy Eats World</option> <option value="7">Sweetness By Jimmy Eats World</option> <option value="8">SONG NAME HERE</option> <option value="9">SONG NAME HERE</option> </select><br> <input TYPE="BUTTON" NAME="darkplay" VALUE="play" onfiltered="play(document.forms['form'].playlist);"> <input TYPE="BUTTON" NAME="darkpause" VALUE="pause" onfiltered="document.darkplayer.Pause(); playstate=2;"> <input TYPE="BUTTON" NAME="darkstop" VALUE="stop" onfiltered="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 songs=new Array(); songs[1] ="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/1/237/22087_1_3_04.asf"; songs[2] =".http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/25112/29654_1_3_04.asf"; songs[3] ="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/6597/26927_1_16_04.asf"; songs[4] ="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/25/7404_1_8_04.asf"; songs[5] =".http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/0/301/24090_1_5_04.asf"; songs[6] =".http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/4814/22811_1_3_04.asf"; songs[7] ="http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/5/4814/22811_1_5_04.asf"; songs[8] ="SONG URL HERE!"; songs[9]="SONG URL HERE!"; 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> |
|
|
|
Aug 24 2004, 10:20 PM
Post
#2
|
|
![]() sang loves hayden. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 3,373 Joined: Feb 2004 Member No: 5,687 |
well i dont noe wuts wrong with the code.. well.. on mine.. i have the same thing.. cept i started it on "0" and [0] not "1" [1].. on the option thingie.. i dont noe if thats gonna help.. if not then just redo ur thing.. =/
|
|
|
|
Aug 24 2004, 11:02 PM
Post
#3
|
|
![]() Member ![]() ![]() Group: Member Posts: 27 Joined: Aug 2004 Member No: 41,144 |
not sure if this will work or not...but try taking out the
QUOTE <option value="8">SONG NAME HERE</option> and the <option value="9">SONG NAME HERE</option> QUOTE songs[8] ="SONG URL HERE!"; songs[9]="SONG URL HERE!"; since you don't have the 8 and 9th song.....take those out and see what happens! |
|
|
|
Aug 24 2004, 11:16 PM
Post
#4
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 215 Joined: Jul 2004 Member No: 26,839 |
i agree with ralph501. it should work
|
|
|
|
Aug 24 2004, 11:25 PM
Post
#5
|
|
![]() moohaha ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,214 Joined: Aug 2004 Member No: 41,985 |
your music urls might be bad n i agree with ralph guy too thats how they normally start
|
|
|
|
Aug 24 2004, 11:30 PM
Post
#6
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 215 Joined: Jul 2004 Member No: 26,839 |
use my code
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="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"> <p style="text-align: center"> <select style="FONT-SIZE: 8pt; BACKGROUND:#000000; WIDTH: 150px; COLOR: #33666; font-face: verdana" name="playlist" size="1"> <option value="0">name</option> <option value="1">name</option> <option value="2">name</option> <option value="3">name</option> <option value="4">name</option> <option value="5">name</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] ="url"; songs[1] ="url"; songs[2] ="url"; songs[3] ="url"; songs[4] ="url"; songs[5] ="url"; 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 --> |
|
|
|
Aug 24 2004, 11:43 PM
Post
#7
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 30 Joined: Jul 2004 Member No: 31,640 |
Do you put the url in the these thingys """"""" lol i forgot what there called.xoxo
|
|
|
|
Aug 24 2004, 11:46 PM
Post
#8
|
|
![]() moohaha ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,214 Joined: Aug 2004 Member No: 41,985 |
by the way those r called quotations hehe
|
|
|
|
Aug 25 2004, 12:21 AM
Post
#9
|
|
![]() got mo skillz ![]() ![]() ![]() Group: Member Posts: 56 Joined: Jan 2004 Member No: 2,122 |
dude you added a "period" before the link thats y the 2nd song isnt working
songs[2] =".http://a420.v8383d.c8383.g.vm.akamaistream.net/7/420/8383/3b858b51/mtvrdstr.download.akamai.com/8512/wmp/2/25112/29654_1_3_04.asf"; ^ |
|
|
|
Aug 25 2004, 11:26 PM
Post
#10
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 30 Joined: Jul 2004 Member No: 31,640 |
wait...do you have to upload the music first?
|
|
|
|
Aug 26 2004, 12:27 AM
Post
#11
|
|
![]() Is it maturity, or admitting defeat...? ![]() ![]() ![]() ![]() Group: Member Posts: 152 Joined: Aug 2004 Member No: 36,659 |
QUOTE(Got Xanga? @ Aug 26 2004, 12:26 AM) wait...do you have to upload the music first? This post has been edited by Just AJ: Aug 26 2004, 12:29 AM |
|
|
|
Aug 26 2004, 05:12 AM
Post
#12
|
|
![]() We are the cure. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 4,936 Joined: Jan 2004 Member No: 1,456 |
Songs 2, 5 and 6 have periods before the URL.
|
|
|
|
![]() ![]() |