急!为何表格中填入视频对象后,表格宽高无法用JS改变?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<table id="table1" border="1" width="100%" bordercolor="#0000FF">
<tr id="tr1" height="24">
<td id="td1"> </td>
<td> </td>
</tr>
<tr height="24">
<td> </td>
<td> </td>
</tr>
</table>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="C:\Documents and Settings\Administrator\桌面\_private\form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><input type="button" value="按钮" name="B3" onclick="return chgtr();"></p>
</form>
<script language="javascript" type="text/javascript">
var isbig=0;
function chgtr()
{
if(isbig==0){
document.getElementById("td1").width="10";
document.getElementById("tr1").height="100";
isbig=1;
}
else{
document.getElementById("tr1").height="24";
isbig=0;
}
}
</script>
</body>
</html>
上述代码运行可以改变表格宽高,但我在单元格td中加入
<object id="Camera1" classid="CLSID:aaaa" codebase="X.ocx#Version=1.1" height="288" name="Camera1" width="352">
后,就无法改变表格宽高了,加入对象后我在chgtr中同时设置了Camera1对象的宽高,对象是点击按钮后,Camera1的大小改变了,但表格宽高完全没有变化,真是不知怎么解决了,在网上查了很久也没有相关的问题解决方案,那位高手知道请一定不吝赐教。