javasript:我有一段realplayer网页播放器的代码,如何实现换片

<object id="vid" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=427 height=300>
<param name="_ExtentX" value="11298">
<param name="_ExtentY" value="7938">
<param name="AUTOSTART" value="0">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="f:/逃离改造营.rmvb">
<param name="CONTROLS" value="Imagewindow">
<param name="CONSOLE" value="clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</object>

如何通过<button>实现播放另一部电影
贰壹肆伍捌 只是做了一半 不能实现功能

加个file控件.加个按扭.在按扭里给SRC重新赋值.

------------------------------

笨办法!!!试了.行.

<script>
function changeMovie(){
var src=document.getElementById("movieSrc").value;
document.getElementById("divm").innerHTML="<object id='vid' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width=427 height=300 VIEWASTEXT><param name='_ExtentX' value='11298'><param name='_ExtentY' value='7938'><param name='AUTOSTART' value='1'><param name='SHUFFLE' value='0'><param name='PREFETCH' value='0'><param name='NOLABELS' value='-1'><param name='SRC' value='"+src+"'><param name='CONTROLS' value='Imagewindow'><param name='CONSOLE' value='clip1'><param name='LOOP' value='0'><param name='NUMLOOP' value='0'><param name='CENTER' value='0'><param name='MAINTAINASPECT' value='0'><param name='BACKGROUNDCOLOR' value='#000000'></object>";
}
</script>

<div id="divm">
<object id="vid" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=427 height=300 VIEWASTEXT>
<param name="_ExtentX" value="11298">
<param name="_ExtentY" value="7938">
<param name="AUTOSTART" value="0">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="f:/逃离改造营.rmvb">
<param name="CONTROLS" value="Imagewindow">
<param name="CONSOLE" value="clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</object>
</div>
<div>
<input type=file id="movieSrc"><input type=button value="换片" onclick="changeMovie()">
</div>
温馨提示:内容为网友见解,仅供参考
第1个回答  2019-05-24
加个file控件.加个按扭.在按扭里给SRC重新赋值.
------------------------------
笨办法!!!试了.行.
<input
type=button
valu

javasript:我有一段realplayer网页播放器的代码,如何实现换片
加个file控件.加个按扭.在按扭里给SRC重新赋值.--- 笨办法!!!试了.行. function changeMovie(){ var src=document.getElementById("movieSrc").value;document.getElementById("divm").innerHTML="

相似回答
大家正在搜