drop down playlist & custom module |
drop down playlist & custom module |
Dec 21 2004, 04:57 AM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Dec 2004 Member No: 73,317 |
how do i put the music drop down playlist into a custom module? i was planning to use an "add extra module" code, but it only says i can add text .. so i thought that would scratch out puttin` music in it .. well here`s 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"> <select name="playlist" size="1"> <!-- Add song info here --> <option value="0">only wish</option> <option value="1">all i want for xmas</option> <option value="2">this gift</option> <option value="3">have yourself a merry lil xmas</option> <option value="4">silent night</option> <option value="5">last xmas</option> <option value="6">breath of heaven</option> <option value="7">let it snow</option> <option value="8">lil drummer boy</option> <option value="9">herald angels sing</option> <option value="10">silver bells</option> <option value="11">o holy night</option> <option value="12">silent night 2</option> <option value="13">what xmas means to me</option> <option value="14">last xmas 2</option> <option value="15">have yourself a merry lil xmas 2</option> <option value="16">8 days of xmas</option> <option value="17">lil drummer boy 2</option> <option value="18">silent night 2</option> <option value="19">white xmas 2</option> <option value="20">o holy night 2</option> <option value="21">santa baby</option> <option value="22">rockin` around the xmas tree</option> <option value="23">i saw mommy kissin` santa claus</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://www.angelfire.com/magic2/foofoo/christmas_songs_-_britney_spears_-_my_only_wish__this_year__1_.mp3"; songs[1]="http://www.dazzled.com/foofoox33/mariah%20carey%20-%20all%20i%20want%20for%20christmas%20is%20you.mp3"; songs[2]="http://www.angelfire.com/magic2/foofoo/98_degrees_-_this_christmas_-_this_gift.mp3"; songs[3]="http://www.dazzled.com/kristinafoo/christina%20aguilera%20-%20my%20kind%20of%20christmas%20-%20have%20yourself%20a%20merry%20little%20christmas.mp3"; songs[4]="http://www.dazzled.com/kristinafoo/christmas%20boys%202%20men%20-%20boys%20ii%20men%20-%20silent%20night%20acapella.mp3"; songs[5]="http://www.dazzled.com/kristinafoo/hilary%20duff%20-%20santa%20clause%20lane%20-%20last%20christmas.mp3"; songs[6]="http://www.dazzled.com/kristinafoo/jessica%20simpson%20-%20christmas%20collection%20-%20breath%20of%20heaven%20(marys%20song).mp3"; songs[7]="http://www.dazzled.com/kristinafoo/jessica%20simpson%20-%20christmas%20collection%20-%20let%20it%20snow.mp3"; songs[8]="http://www.dazzled.com/kristinafoo/jessica%20simpson%20-%20christmas%20collection%20-%20the%20little%20drummer%20boy%20(duet%20ft%20ashlee%20simpson)-easymp3s.mp3"; songs[9]="http://www.dazzled.com/kristinafoo/jessica%20simpson%20-%20limited%20edition%20christmas%20collection%20-%20hark!%20the%20herald%20angels%20sing.mp3"; songs[10]="http://www.dazzled.com/kristinafoo/martina%20mcbride%20-%20white%20christmas%20-%20silver%20bells.mp3"; songs[11]="http://www.dazzled.com/kristinafoo/o%20holy%20night(2).mp3"; songs[12]="http://www.dazzled.com/kristinafoo/silent%20night.mp3"; songs[13]="http://www.dazzled.com/kristinafoo/what%20christmas%20means%20to%20me.mp3"; songs[14]="http://www.dazzled.com/foofoox/jimmy%20eat%20world%20-%20last%20christmas.mp3"; songs[15]="http://www.dazzled.com/foofoox/frank%20sinatra%20&%20bing%20crosby%20-%20frank%20sinatra%20-%20have%20yourself%20a%20merry%20little%20christmas.mp3"; songs[16]="http://www.dazzled.com/foofoox/destiny::s%20child%20-%20platinum%20christmas%20-%208%20days%20of%20christmas.mp3"; songs[17]="http://www.dazzled.com/foofoox/destiny::s%20child%20-%208%20days%20of%20christmas%20-%20little%20drummer%20boy%20(f%20solange.mp3"; songs[18]="http://www.dazzled.com/foofoox/destiny::s%20child%20-%2004%20-%20silent%20night%20(feat%20beyonce%20knowles)%20-.mp3"; songs[19]="http://www.dazzled.com/foofoox/07%20white%20christmas.mp3"; songs[20]="http://www.dazzled.com/foofoox/(09)destiny's%20child%20-%20o::%20holy%20night%20(feat%20michelle%20williams).mp3"; songs[21]="http://www.dazzled.com/foofoox/madonna%20-%20a%20very%20special%20christmas%20-%20santa%20baby.mp3"; songs[22]="http://www.dazzled.com/foofoox/jessica%20simpson%20-%20rocking%20around%20the%20christmas%20tree.mp3"; songs[23]="http://www.dazzled.com/foofoox/jessica%20simpson%20-%20i%20saw%20mommy%20kissing%20santa%20claus(2).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> <!-- end code provided by createblog.com --> i`d really like it if someone could help me .. thanks a lot if you can, i`d appreciate it |
|
|
|
![]() |
Dec 21 2004, 06:17 AM
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,137 Joined: Nov 2004 Member No: 62,193 |
try using a DIV layer, i think there is a tutorial on it somewhere.
|
|
|
|
Dec 27 2004, 12:38 AM
Post
#3
|
|
|
Newbie ![]() Group: Member Posts: 7 Joined: Dec 2004 Member No: 73,317 |
thx :]
|
|
|
|
| *mona lisa* |
Dec 27 2004, 11:56 AM
Post
#4
|
|
Guest |
yea, becuase you can't add html to it.
|
|
|
|
Dec 29 2004, 11:56 PM
Post
#5
|
|
|
Mindy ![]() Group: Member Posts: 6 Joined: Dec 2004 Member No: 76,152 |
you actually can do that .. i went to www.xanga.com/h_tml and there was dis person and she figured out the she would make a table that looked like a module with a player in it. I used it and it worked, it appears on under posting calander so if that annoys anyone im sorry. Well i took it off and i tried to find it again..still am but not succeding. I'm pretty sure it was in xanga help html/javascript or xanga script html/javascript. If you can find it. Lucky you!
|
|
|
|
Mar 11 2005, 04:38 PM
Post
#6
|
|
|
Newbie ![]() Group: Member Posts: 8 Joined: Mar 2005 Member No: 111,361 |
i was wondering is it possible to put a playlist into one of the left module also... have anyone figure out how to do iT? ?
|
|
|
|
Mar 11 2005, 04:41 PM
Post
#7
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,826 Joined: Jan 2004 Member No: 2,330 |
use the custom left module script found on xanga.com/kaiyotee
|
|
|
|
Mar 11 2005, 06:32 PM
Post
#8
|
|
|
Newbie ![]() Group: Member Posts: 8 Joined: Mar 2005 Member No: 111,361 |
well it works for meh, and dat's good, buh now i have another problem... -=T somehow, there's something wrong with mah playlist... it play song, but then it didn't play the right song according to the title.. and somehow, da play , pause and stop button doesn't work....
here's my playlist 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"> <select name="playlist" size="1"> <!-- Add song info here --> <option value="0">Jaci Velasquez - Imagine Me Without You</option> <option value="1">Luther Vandross - I'd Rather</option> <option value="2">Destiny's Child - Emotions</option> <option value="3">Usher - Can You Help Me?</option> <option value="4">Westlife - I Miss You</option> <option value="5">Ciara-And I</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://www.dazzled.com/qlilangelz/Jaci Velasquez - Imagine Me Without You.mp3"; songs[1]="http://www.dazzled.com/qlilangelz/Luther Vandross - I::d Rather.mp3"; songs[2]="http://www.dazzled.com/qlilangelz/Destiny::s Child - Emotions.mp3"; songs[3]="http://www.dazzled.com/qlilangelz/Usher - Can U Help Me.mp3"; songs[4]="http://www.dazzled.com/qlilangelz/Westlife - I Miss You.mp3"; songs[5]="http://www.dazzled.com/qlilangelz/Ciara-10-And I.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> <!-- end code provided by createblog.com --> please help... thanks a lot.. -=] |
|
|
|
Mar 12 2005, 02:56 PM
Post
#9
|
|
|
Newbie ![]() Group: Member Posts: 1 Joined: Feb 2005 Member No: 104,663 |
i need help >.< because it keeps saying that it's done..with the ! sign in a yellow triangle..and it's like..Done but with some errors..and my songs never play..but i got it to work once...but then it stopped when i refreshed it..SOMEONE PLEASE HELP ME I'M IN LIKE..A MAJOR CRISIS SINCE I WAS TRYING TO FIX IT SINCE 10 AM AND NOT ITS LIEK 3!
|
|
|
|
![]() ![]() |