bgcolor="white"; 改为 bgColor="white"
大写

解决方案 »

  1.   

    第九行
    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了。
      

  2.   

    其实Html里面基本部分大小写的,不是那个问题 for(i=0;i<secTable.rows[0].cells.length;i++)
        secTable.rows[0]c.ells[i].bgcolor="white";
                       ~~~~~~
                           错在这里!!!!
      

  3.   

    注意大小写..
    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>