I've got the Darkplayer frm Xanga Script
I wud like to hv da songs non-stop playin' if da visitor doesnt choose a song him/herself. Can it be done? Oh 'n I'd also like to add STOP 'n PAUSE for my darkplayer ... PLEASE???
Here's my HTML ...
<!-- 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">
</object>
<form name="form">
<select name="playlist" size="1">
<!-- Add song info here -->
<option value="0">Alicia Keys – Killing Me Softly (LIVE)</option>
<option value="1">Mandy Moore – Only Hope </option>
<option value="2">Mandy Moore – Walk Me Home</option>
<option value="3">S Club 7 – Never Had a Dream Come True</option>
<option value="4">Stacie Orrico - Stuck</option>
<option value="5">Stacie Orrico – Without Love</option>
<option value="6">Kokia - 01</option>
<option value="7">Kokia - 02</option>
<option value="8">Misia – In My Soul</option>
<option value="9">Misia – Snow Song</option>
<option value="10">Eric Kwok - 就當我未玩夠</option>
<option value="11">Ping Pung - 二十世紀少年</option>
<option value="12">Swing - 黑雨天 白鋼琴 </option>
<option value="13">林一峰 + 傅珮嘉 - 晚安歌</option>
<option value="14">陳冠希 + Stephy - Blue Skies (RADIO Version)</option>
<option value="15">鄭融 - 失蹤主角feat.余文樂</option>
<option value="16">陳奕迅 - 聖誕結</option>
<option value="17">范瑋琪 + 光良 - 好寂寞</option>
</select>
<input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);">
</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://web.hku.hk/~h0360661/AliciaKeys_KillingMeSoftly.asf ";
songs[1]= "http://web.hku.hk/~h0360661/OnlyHope.asf ";
songs[2]= "http://web.hku.hk/~h0360661/WalkMeHome.asf ";
songs[3]= "http://web.hku.hk/~h0360661/SClub7.asf ";
songs[4]= "http://web.hku.hk/~h0360661/Stacie_Stuck.asf ";
songs[5]= "http://web.hku.hk/~h0360661/Stacie_WithoutLuv.asf ";
songs[6]= "http://web.hku.hk/~h0360661/Kokia_Luv.asf ";
songs[7]= "http://web.hku.hk/~h0360661/Kokia_09.asf ";
songs[8]="http://web.hku.hk/~h0360661/Misia_InMySoul.asf";
songs[9]= "http://web.hku.hk/~h0360661/Misia_SnowSong.asf ";
songs[10]= "http://web.hku.hk/~h0360661/EricKwok.wma ";
songs[11]= "http://web.hku.hk/~h0360661/PingPung_20CYoungster.asf ";
songs[12]="http://web.hku.hk/~h0360661/Swing.asf";
songs[13]= "http://web.hku.hk/~h0360661/Gdnite.asf ";
songs[14]= "http://web.hku.hk/~h0360661/EdisonStephy_BlueSkies.asf ";
songs[15]= "http://web.hku.hk/~h0360661/StephanieShawn_LostCharacter.asf ";
songs[16]= "http://web.hku.hk/~h0360661/Eason.wma ";
songs[17]= "http://web.hku.hk/~h0360661/Lonely.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 -->
<!-- begin code provided by createblog.com -->
<style type="text/css">
select{
color:#FFFFFF;
background-color:#333333;
font-family:century gothic;
font-size:10px;
}
</style>
<!-- end code provided by createblog.com -->