<scriptlanguage=javascriptdefer>
varvolv=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);
functionvolup(){
if(volv<100){
volv+=5;
phx.settings.volume=volv;
time.innerText=volv;}
else{time.innerText='最大';}
}
functionvoldown(){
if(volv>0){
volv-=5;
phx.settings.volume=volv;
time.innerText=volv;}
else{time.innerText='最小';}
}
</script>
<p>
<objectclassid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"id="phx"width="245"height="240">
<paramname="URL"value="声音文件的位置/shengyin.wmv">
<paramname="rate"value="1">
<paramname="balance"value="0">
<paramname="currentPosition"value="0">
<paramname="defaultFrame"value>
<paramname="playCount"value="1">
<paramname="autoStart"value="-1">
<paramname="currentMarker"value="0">
<paramname="invokeURLs"value="-1">
<paramname="baseURL"value>
<paramname="volume"value="50">
<paramname="mute"value="0">
<paramname="uiMode"value="full">
<paramname="stretchToFit"value="0">
<paramname="windowlessVideo"value="0">
<paramname="enabled"value="-1">
<paramname="enableContextMenu"value="-1">
<paramname="fullScreen"value="0">
<paramname="SAMIStyle"value>
<paramname="SAMILang"value>
<paramname="SAMIFilename"value>
<paramname="captioningID"value>
<paramname="enableErrorDialogs"value="0">
<paramname="_cx"value="6482">
<paramname="_cy"value="6350">
</object>
</p>
<inputtype=buttonvalue=muteonclick=phx.settings.mute=phx.settings.mute==true?false:true;time.innerText=phx.settings.mute==true?'静音':'关闭静音';>
<inputtype=buttonvalue=playonclick=phx.controls.play();time.innerText='播放';>
<inputtype=buttonvalue=pauseonclick=phx.controls.pause();time.innerText='暂停';>
<inputtype=buttonvalue=stoponclick=phx.controls.stop();time.innerText='停止';>
<inputtype=buttonvalue=modeonclick=phx.settings.balance=phx.settings.balance=='100'?'-100':'100';time.innerText=phx.settings.balance=='100'?'右声道':'左声道';>
<inputtype=buttonvalue=vol++onclick=volup();>
<inputtype=buttonvalue=vol--onclick=voldown();>
<inputtype=buttonvalue=fullscreenonclick="if(phx.playState==3)phx.fullscreen=1;">
<br>
<divid="time"style="background:#f2f3f7;width:245">正在加载媒体。。。</div>
<tableid=barstyle="width:245;height:10px;border:1pxblacksolid;">
<tr>
<tdid=itcnbgcolor=#f70968style="width:0"></td>
<tdid=bar2style="width:245"></td>
</tr>
</table>