[求助]请教怎么样去掉在线播放器面版上的按钮?
在JS版没人回答只好来这里求助了,呵呵。。
在线视频播放器代码及脚本代码如下,我想去掉播放器自带的播放按钮,停止按钮及所有的按钮,换成自己设计的,现在自己的加上去,但是不知道怎么样去掉播放器自带的控制面版。
<script language=javascript defer>
var volv=phx.settings.volume;
setInterval("if(phx.playState==3){time.innerText=phx.controls.currentPositionString+'|'+phx.currentMedia.durationString}",1000);
setInterval("if(phx.playState==3){itcn.style.width=parseInt(245*(phx.controls.currentPosition/phx.currentMedia.duration))}",1000);
function volup(){
if (volv<100){
volv+=5;
phx.settings.volume=volv;
time.innerText=volv;}
else{time.innerText='最大';}
}
function voldown(){
if (volv>0){
volv-=5;
phx.settings.volume=volv;
time.innerText=volv;}
else{time.innerText='最小';}
}
function chg(){
if(bt.value=='播放'){
phx.controls.play();
time.innerText='播放';
bt.value='暂停';
}else if(bt.value=='暂停'){
phx.controls.pause();
time.innerText='暂停';
bt.value='播放';
}
}
</script>
<div align="center" style="width:245 ">
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="phx" width="245" height="240">
<param name="URL" value="http://www.gxxf001.com/11.wmv">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="0">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="0">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="6482">
<param name="_cy" value="6350">
</object></div>
<div style="background-color:#99CCFF;width:245 " align="center">
<input class="bt" type=button value=静音 onclick=phx.settings.mute=phx.settings.mute==true?false:true;time.innerText=phx.settings.mute==true?'静音':'关闭静音';>
<!--<input type="button" value="播放" onclick="phx.controls.play();time.innerText='播放';">-->
<input class="bt" name="bt" id="bt" type="button" value="播放" onclick="return chg();">
<!--<input type=button value=暂停 onclick=phx.controls.pause();time.innerText='暂停';>-->
<input class="bt" type=button value=停止 onclick=phx.controls.stop();time.innerText='停止';>
<input class="bt" type=button value=声道 onclick=phx.settings.balance=phx.settings.balance=='100'?'-100':'100';time.innerText=phx.settings.balance=='100'?'右声道':'左声道';>
<input class="bt" type=button value=升音 onclick=volup();>
<input class="bt" type=button value=降音 onclick=voldown();>
</div>
<div id="time" style="background:#f2f3f7;width:245"></div>
<div style="background:lightblue;width:245">
<div id="itcn" style="background:#f70997;width:0"></div></div>