<SCRIPT LANGUAGE="JavaScript">
<!--
function test(){
//document.all.a1.rows[0].bgColor=document.bgColor;
document.getElementById("a1").rows[0].bgColor=document.bgColor;
}
//-->
</SCRIPT>
<table id=a1>
<tr bgColor="green">
<td>test</td>
</tr>
</table>
<button onclick=test()>test</button>
ns不认“all”的。
<!--
function test(){
//document.all.a1.rows[0].bgColor=document.bgColor;
document.getElementById("a1").rows[0].bgColor=document.bgColor;
}
//-->
</SCRIPT>
<table id=a1>
<tr bgColor="green">
<td>test</td>
</tr>
</table>
<button onclick=test()>test</button>
ns不认“all”的。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货