Log In · Register

 
Help with subscriptions and playlist code!!!
faithqi
post 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!!! biggrin.gif
 
 
Start new topic
Replies
faithqi
post Dec 23 2004, 03:24 AM
Post #2


Newbie
*

Group: Member
Posts: 4
Joined: Dec 2004
Member No: 73,642



happy.gif yah! I m new here. heehee... thanks for showing me the way around _smile.gif

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... wacko.gif

THANKS for you help!!!! laugh.gif
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: