原帖由 愉愉 於 2006-12-27 10:19 PM 發表
有無人可以答我?
整個music player有得禁play、stop button
<object id="darkplayer" codeBase="
遊客無法瀏覽此圖片或下載點,請先註冊或登入會員。 ... p2inf.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 align="right">
<font face="Verdana">
<select style="font-size: 8pt; background-color: #FFFFFF; background-repeat: repeat; background-attachment: scroll; width: 154; color: #3399FF; font-face: verdana; height: 23; background-position: 0%" name="playlist" size="1">
<option value="0">歌名</option>
<option value="1">歌名</option>
</select><p align="right"><input style="BORDER-RIGHT: #色碼 粗度px double; BORDER-TOP: #色碼 粗度px double; FONT-SIZE: 8pt; BORDER-LEFT: #色碼 粗度px double; COLOR: #FF0080; BORDER-BOTTOM: #色碼 粗度px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #背景色" onClick="play(document.forms['form'].playlist);" type=button value=Play name=darkplay>
<input style="BORDER-RIGHT: #色碼 粗度px double; BORDER-TOP: #色碼 粗度px double; FONT-SIZE: 8pt; BORDER-LEFT: #色碼 粗度px double; COLOR: #FF0080; BORDER-BOTTOM: #色碼 粗度px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #背景色" onClick="document.darkplayer.pause(); playstate=2;" type=button value=Pause name=darkpause>
<input style="BORDER-RIGHT: #色碼 粗度px double; BORDER-TOP: #色碼 粗度px double; FONT-SIZE: 8pt; BORDER-LEFT: #色碼 粗度px double; COLOR: #FF0080; BORDER-BOTTOM: #色碼 粗度px double; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #背景色" onClick="document.darkplayer.stop(); playstate=2;" type=button value=Stop name=darkstop></form>
<script language="JavaScript">
<!--
var playstate = 1;
shuffle = // set to 0 to always play first song in list
// set to 1 to randomly choose the first song to play
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]=" 歌網址"
songs[1]=" 歌網址"
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>
DOUBLE就係兩條線
亦可以改DOTTED(點),SOLID(線)
背景色就係果個禁PLAY果度GE背景色
放係Input your own Header HTML