网页中插入wmv视频,请高手帮忙看下两段代码,看有什么问题,现在插入的视频都播放不了。
网页为一个插入视频的网页media.htm代码是<HTML><HEAD><TITLE>视频文件</TITLE><linkrel="stylesheet"type="tex...
网页为一个插入视频的网页media.htm
代码是
<HTML><HEAD><TITLE>视频文件</TITLE>
<link rel="stylesheet" type="text/css" href="site.css">
<SCRIPT event=onclick for=Ok language=JavaScript>
window.returnValue = path.value+"*"+selrow.value+"*"+selcol.value
window.close();
</SCRIPT>
<script>
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<BODY bgColor=menu topmargin=15 leftmargin=15 >
<CENTER><BR>
<table width=100%><tr><td>
<FIELDSET align=left>
<LEGEND align=left>插入网上视频文件</LEGEND>
<TABLE>
<TR><TD >地址:<INPUT id=path size=35 value="http://"></td></TR>
<TR><TD >宽度:<INPUT id=selrow ONKEYPRESS="event.returnValue=IsDigit();" value=500 size=7 maxlength="4"> 高度:<INPUT id=selcol ONKEYPRESS="event.returnValue=IsDigit();" value=300 size=7 maxlength="4"></TD></TR>
<TR><TD align=center>支持格式为:avi、wmv、asf</TD></TR>
</TABLE></fieldset></td><td width=80 align="center"><input type=submit value=' 确定 ' id=Ok><br><br><input type=button value=' 取消 ' onclick="window.close();"></td></tr></table>
提取地址和大小,然后editor.asp文件中
代码
function wmv()
{
if (! validateMode()) return;
HtmlEdit.focus();
var range = HtmlEdit.document.selection.createRange();
var arr = showModalDialog("media.html", "", "dialogWidth:30em; dialogHeight:10em;
status:0;help:0");
if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
row=ss[1];
col=ss[2];
var string;
string="<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' width="+row+"
height="+col+"><param name=Filename value="+path+"><param name='BufferingTime'
value='5'><param name='AutoSize' value='1'><param name='AnimationAtStart' value='-1'><param
name='AllowChangeDisplaySize' value='-1'><param name='ShowPositionControls' value='0'><param
name='TransparentAtStart' value='1'><param name='ShowStatusBar' value='1'></object>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}
请问下代码那里有问题啊 展开
代码是
<HTML><HEAD><TITLE>视频文件</TITLE>
<link rel="stylesheet" type="text/css" href="site.css">
<SCRIPT event=onclick for=Ok language=JavaScript>
window.returnValue = path.value+"*"+selrow.value+"*"+selcol.value
window.close();
</SCRIPT>
<script>
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<BODY bgColor=menu topmargin=15 leftmargin=15 >
<CENTER><BR>
<table width=100%><tr><td>
<FIELDSET align=left>
<LEGEND align=left>插入网上视频文件</LEGEND>
<TABLE>
<TR><TD >地址:<INPUT id=path size=35 value="http://"></td></TR>
<TR><TD >宽度:<INPUT id=selrow ONKEYPRESS="event.returnValue=IsDigit();" value=500 size=7 maxlength="4"> 高度:<INPUT id=selcol ONKEYPRESS="event.returnValue=IsDigit();" value=300 size=7 maxlength="4"></TD></TR>
<TR><TD align=center>支持格式为:avi、wmv、asf</TD></TR>
</TABLE></fieldset></td><td width=80 align="center"><input type=submit value=' 确定 ' id=Ok><br><br><input type=button value=' 取消 ' onclick="window.close();"></td></tr></table>
提取地址和大小,然后editor.asp文件中
代码
function wmv()
{
if (! validateMode()) return;
HtmlEdit.focus();
var range = HtmlEdit.document.selection.createRange();
var arr = showModalDialog("media.html", "", "dialogWidth:30em; dialogHeight:10em;
status:0;help:0");
if (arr != null){
var ss;
ss=arr.split("*")
path=ss[0];
row=ss[1];
col=ss[2];
var string;
string="<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' width="+row+"
height="+col+"><param name=Filename value="+path+"><param name='BufferingTime'
value='5'><param name='AutoSize' value='1'><param name='AnimationAtStart' value='-1'><param
name='AllowChangeDisplaySize' value='-1'><param name='ShowPositionControls' value='0'><param
name='TransparentAtStart' value='1'><param name='ShowStatusBar' value='1'></object>"
content=HtmlEdit.document.body.innerHTML;
content=content+string;
HtmlEdit.document.body.innerHTML=content;
}
else HtmlEdit.focus();
}
请问下代码那里有问题啊 展开
1个回答
展开全部
<body>
<object width="420" height="360"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="电影地址" />
<embed width="420" height="360" type="application/x-mplayer2"
src="http://vod.ujn.edu.cn/movies%2Fasf%2F%B6%AC%CC%EC%C1%B5%B8%E8%2Easf"></embed>
</object>
<object width="420" height="360"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="电影地址" />
<embed width="420" height="360" type="application/x-mplayer2"
src="http://vod.ujn.edu.cn/movies%2Fasf%2F%B6%AC%CC%EC%C1%B5%B8%E8%2Easf"></embed>
</object>
追问
我说的是media.htm内输入地址,请问上面的代码那里有问题
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询