表格颜色控制问题 bgcolor="white"; 改为 bgColor="white"大写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 第九行for(i=0;i<secTable.rows[0].cells.length;i++) secTable.rows[0]c.ells[i].bgcolor="white";改为for(i=0;i<secTable.rows[0].cells.length;i++) secTable.rows[0].cells[i].bgcolor="white";OK了。 其实Html里面基本部分大小写的,不是那个问题 for(i=0;i<secTable.rows[0].cells.length;i++) secTable.rows[0]c.ells[i].bgcolor="white"; ~~~~~~ 错在这里!!!! 注意大小写..bgcolor -> bgColor<html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script language=javascript>function secBoard(n){ for(i=0;i<secTable.rows[0].cells.length;i++) { secTable.rows[0].cells[i].bgColor="white"; } secTable.rows[0].cells[n].bgColor="#999999" ;}</script></head><body> <input type="hidden" name="display"> <table border=0 cellspacing=0 cellpadding=0 width=100% id=secTable> <tr height=20 align=center> <td bgcolor="#999999" width=20% onclick="secBoard(0);display.value=1"><a href="">业务范围</a></td> <td bgcolor=white width=20% onclick="secBoard(1);display.value=2">信托业务 </td> <td bgcolor=white width=20% onclick="secBoard(2);display.value=3"><a href="recordCheck.jsp?keyWord=<%=INSTRU_SYSID%>&INSTRU_CAT=<%=INSTRU_CAT%>">投资银行</a> </td> <td bgcolor=white width=20% onclick="secBoard(3);display.value=4"><a href="recordExam.jsp?keyWord=<%=INSTRU_SYSID%>&INSTRU_CAT=<%=INSTRU_CAT%>">资产管理</a> </td> <td bgcolor=white width=20% onclick="secBoard(4);display.value=5"><a href="overhaulSituation.jsp?keyWord=<%=INSTRU_SYSID%>&INSTRU_CAT=<%=INSTRU_CAT%>">公司产品 </a></td> </table> </body></html> jquery的一个传参的小问题 看下Math函数 验证问题?求例子 获得ListBox选中值的其他信息 javascript中如何扩展dom对象的 System.Web.UI.WebControls.Menu控件能不能用JavaScript做它的点击,这样点击时不会提交页面 没有分了,不知道有没有可以帮回答的。 form.id问题,我要给from的id属性赋值 急!如何用javascript改写客户端关于本站点的cookie信息? 关于textarea的滚动条问题 请问如何对PX的计算 用javascript给页面一个元素负值时是不是只行一行完成啊?
for(i=0;i<secTable.rows[0].cells.length;i++)
secTable.rows[0]c.ells[i].bgcolor="white";
改为
for(i=0;i<secTable.rows[0].cells.length;i++)
secTable.rows[0].cells[i].bgcolor="white";
OK了。
secTable.rows[0]c.ells[i].bgcolor="white";
~~~~~~
错在这里!!!!
bgcolor -> bgColor<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript>
function secBoard(n)
{
for(i=0;i<secTable.rows[0].cells.length;i++)
{
secTable.rows[0].cells[i].bgColor="white";
}
secTable.rows[0].cells[n].bgColor="#999999" ;
}
</script>
</head><body>
<input type="hidden" name="display">
<table border=0 cellspacing=0 cellpadding=0 width=100% id=secTable>
<tr height=20 align=center>
<td bgcolor="#999999" width=20% onclick="secBoard(0);display.value=1"><a href="">业务范围</a></td>
<td bgcolor=white width=20% onclick="secBoard(1);display.value=2">信托业务 </td>
<td bgcolor=white width=20% onclick="secBoard(2);display.value=3"><a href="recordCheck.jsp?keyWord=<%=INSTRU_SYSID%>&INSTRU_CAT=<%=INSTRU_CAT%>">投资银行</a> </td>
<td bgcolor=white width=20% onclick="secBoard(3);display.value=4"><a href="recordExam.jsp?keyWord=<%=INSTRU_SYSID%>&INSTRU_CAT=<%=INSTRU_CAT%>">资产管理</a> </td>
<td bgcolor=white width=20% onclick="secBoard(4);display.value=5"><a href="overhaulSituation.jsp?keyWord=<%=INSTRU_SYSID%>&INSTRU_CAT=<%=INSTRU_CAT%>">公司产品 </a></td>
</table>
</body>
</html>