document.write('<OBJECT ID=MediaPlayer ');
document.write(' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6');
document
.write(' standby="Loading Microsoft Windows Media Player components..."');
document
.write(' TYPE="application/x-oleobject" width="286" height="225">');
document
.write('<PARAM NAME="url" VALUE="http://localhost:8080/mdeia/测试.WMV">');
document.write('<PARAM NAME="AutoStart" VALUE="true">');
document.write('<PARAM NAME="ShowControls" VALUE="1">');
document.write('<PARAM NAME="uiMode" VALUE="mini">');
document.write('</OBJECT>');上边为我在jsp中播放视频jsp中代码,可以正常播放视频,我现在想从请求的到视频名字后,播放那个视频该怎么写谢谢
document.write(' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6');
document
.write(' standby="Loading Microsoft Windows Media Player components..."');
document
.write(' TYPE="application/x-oleobject" width="286" height="225">');
document
.write('<PARAM NAME="url" VALUE="http://localhost:8080/mdeia/测试.WMV">');
document.write('<PARAM NAME="AutoStart" VALUE="true">');
document.write('<PARAM NAME="ShowControls" VALUE="1">');
document.write('<PARAM NAME="uiMode" VALUE="mini">');
document.write('</OBJECT>');上边为我在jsp中播放视频jsp中代码,可以正常播放视频,我现在想从请求的到视频名字后,播放那个视频该怎么写谢谢
var url=document.getElementsByName("url")[0].value
.write('<PARAM NAME="url" VALUE="http://localhost:8080/mdeia/测试.WMV">');
测试.WMV如何换成url呢?
var url = "http://localhost:8080/"+"<%=request.getParameter('name')%>";
document.write('<PARAM NAME="url" VALUE="'+url+'" >');
我的方法如下document.write(' <PARAM NAME="url" VALUE="http://localhost:8080/media/'+'<%=request.getParameter("name")%>'+'">');
谢谢两位
document.write(' <PARAM NAME="url" VALUE="http://localhost:8080/media/'+'${requestScope.name}'+'">');