4个回答
展开全部
<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=\'最小\';}
}
</script>
<p>
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="phx" width="245" height="240">
<param name="URL" value="http://www.wfzx.net/wf-phx/music/she_superstar.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="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<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>
</p>
<input type=button value=mute onclick=phx.settings.mute=phx.settings.mute==true?false:true;time.innerText=phx.settings.mute==true?\'静音\':\'关闭静音\';>
<input type=button value=play onclick=phx.controls.play();time.innerText=\'播放\';>
<input type=button value=pause onclick=phx.controls.pause();time.innerText=\'暂停\';>
<input type=button value=stop onclick=phx.controls.stop();time.innerText=\'停止\';>
<input type=button value=mode onclick=phx.settings.balance=phx.settings.balance==\'100\'?\'-100\':\'100\';time.innerText=phx.settings.balance==\'100\'?\'右声道\':\'左声道\';>
<input type=button value=vol++ onclick=volup();>
<input type=button value=vol-- onclick=voldown();>
<input type=button value=fullscreen onclick="if(phx.playState==3)phx.fullscreen=1;">
<br>
<div id="time" style="background:#f2f3f7;width:245">正在加载媒体。。。</div>
<table id=bar style="width:245;height:10px;border:1px black solid;">
<tr>
<td id=itcn bgcolor=#f70968 style="width:0"></td>
<td id=bar2 style="width:245"></td>
</tr>
</table>
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=\'最小\';}
}
</script>
<p>
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="phx" width="245" height="240">
<param name="URL" value="http://www.wfzx.net/wf-phx/music/she_superstar.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="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<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>
</p>
<input type=button value=mute onclick=phx.settings.mute=phx.settings.mute==true?false:true;time.innerText=phx.settings.mute==true?\'静音\':\'关闭静音\';>
<input type=button value=play onclick=phx.controls.play();time.innerText=\'播放\';>
<input type=button value=pause onclick=phx.controls.pause();time.innerText=\'暂停\';>
<input type=button value=stop onclick=phx.controls.stop();time.innerText=\'停止\';>
<input type=button value=mode onclick=phx.settings.balance=phx.settings.balance==\'100\'?\'-100\':\'100\';time.innerText=phx.settings.balance==\'100\'?\'右声道\':\'左声道\';>
<input type=button value=vol++ onclick=volup();>
<input type=button value=vol-- onclick=voldown();>
<input type=button value=fullscreen onclick="if(phx.playState==3)phx.fullscreen=1;">
<br>
<div id="time" style="background:#f2f3f7;width:245">正在加载媒体。。。</div>
<table id=bar style="width:245;height:10px;border:1px black solid;">
<tr>
<td id=itcn bgcolor=#f70968 style="width:0"></td>
<td id=bar2 style="width:245"></td>
</tr>
</table>
2015-12-16 · 做真实的自己 用良心做教育
千锋教育
千锋教育专注HTML5大前端、JavaEE、Python、人工智能、UI&UE、云计算、全栈软件测试、大数据、物联网+嵌入式、Unity游戏开发、网络安全、互联网营销、Go语言等培训教育。
向TA提问
关注
展开全部
在WebRoot中放了一个meirenyu.mp3文件,那地址为<embed src="meirenyu,mp3" loop="11" autostar="true"/>
扩展:
要想隐藏这个播放器的话,添加个hidden="true",即可。
扩展:
要想隐藏这个播放器的话,添加个hidden="true",即可。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
正如楼上说的,用<object>或<embed>都可以:
例如:<embed SRC="001.mid" WIDTH="145" HEIGHT="60">
其实在JSP网页与HTML是一样的
还可以用这种:<bgsound src="sound.wav" loop=3>
例如:<embed SRC="001.mid" WIDTH="145" HEIGHT="60">
其实在JSP网页与HTML是一样的
还可以用这种:<bgsound src="sound.wav" loop=3>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<object>或者<embed>都可以
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询