Help with subscriptions and playlist code!!! |
Help with subscriptions and playlist code!!! |
Dec 23 2004, 02:04 AM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Dec 2004 Member No: 73,642 |
i copied the playlist html code, and realise that the html code imports windows media player, hence, it is unable to play files with .rm extension. any ways to solve this problem???
and i realise that for the html playlist code with play, pause and stop button, you have to press the play twice to play the song you selected... erh, i wonder y? And is there a way to link my friend's blog at blogspot to my xanga blog??? THANKS A MILLION!!! |
|
|
|
![]() |
Dec 23 2004, 02:07 AM
Post
#2
|
|
![]() High Voltage!∞ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 4,728 Joined: Jul 2004 Member No: 29,157 |
I see you're new to CB! [= aaah...welcome
|
|
|
|
Dec 23 2004, 03:24 AM
Post
#3
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Dec 2004 Member No: 73,642 |
my 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:#transparent; WIDTH: 150px; COLOR: #33666; font-face: verdana" name="playlist" size="1"> <option value="0">Kiss - Because I Am a Girl</option> <option value="1">Hoobastank - Reason</option> <option value="2">Britney - Toxic</option> <option value="3">David Tao - simple love</option> <option value="4">Sunyanzi - yu jian</option> <option value="5">Colin Raye - Love Me</option> <option value="6">Eric Clapton - Tears In Heaven</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://mp3.baidu.com/u?u=http://snake805120.8u8.com/wma/n6itnTU$.wma"; songs[1]="http://mp3.baidu.com/u?u=http://escape.nease.net/mp3/hZqYWWdmiZ2SpaKiNQ$$.mp3"; songs[2]="http://mp3.baidu.com/u?u=http://218.64.81.236/m/i/0616/Z2ZjZmo2.wma"; songs[3]="http://mp3.baidu.com/u?u=http://61.152.251.81:8000/wma88zz//xr/0156/ZjI$.Wma"; songs [4]="http://mp3.baidu.com/u?u=http://218.64.81.238/mu//h/0826/1/ZmNjZ2g2.Wma"; songs[5]="http://mp3.baidu.com/u?u=http://www.yhsky.net/sky/lKGfoJ6klqqSq5hhoaWtnZCfmDQ$.wma"; songs[6]="http://mp3.baidu.com/u?u=http://song.wu8.com/lotus/0524/ZzI$.wma"; 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 am not very gd with html codes, in fact, with every single programming language... THANKS for you help!!!! |
|
|
|
Dec 23 2004, 03:41 AM
Post
#4
|
|
![]() High Voltage!∞ ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 4,728 Joined: Jul 2004 Member No: 29,157 |
QUOTE(faithqi @ Dec 23 2004, 12:24 AM) </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> [= no problem! hmm...i'm not sure but ^ that might be the problem....</select><br> CODE <!-- begin code provided by createblog.com --> <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=1;"> <input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.Stop(); playstate=1;"></p> </form> <!-- end code provided by createblog.com --> hmm...try that ^ instead let me know if it doesn't work, though! hmm..and as for the music codes..try using wma. or mp3. files instead.. |
|
|
|
Dec 23 2004, 08:24 AM
Post
#5
|
|
|
Newbie ![]() Group: Member Posts: 4 Joined: Dec 2004 Member No: 73,642 |
Thanks! it works!! you are an angel!!
|
|
|
|
Dec 26 2004, 02:35 PM
Post
#6
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,826 Joined: Jan 2004 Member No: 2,330 |
QUOTE(faithqi @ Dec 23 2004, 8:24 AM) Thanks! it works!! you are an angel!! welcome to cb faithqi [ topic closed ] |
|
|
|
![]() ![]() |