让高手来回答吧。
网易邮箱的javascript错误太多。我开允许debug模式,页面根本没法打开。

解决方案 »

  1.   

    <TABLE id=Table1 cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
    <TBODY>
      <TR onmouseover="this.bgColor='#A4B6D7'" onmouseout="this.bgColor='#ECF5FF';" style="CURSOR: hand" bgColor=#ecf5ff>
        <TD >
          <INPUT id=Repeater1__ctl1_cb_Id onclick="w(this)" type=checkbox name=Repeater1:_ctl1:cb_Id>
        </TD>
        <TD > 测试 TR1 </TD>
      </TR>
      <TR onmouseover="this.bgColor='#A4B6D7'" onmouseout="this.bgColor='#ECF5FF';" style="CURSOR: hand" bgColor=#ecf5ff>
        <TD >
          <INPUT id=Repeater1__ctl1_cb_Id onclick="w(this)" type=checkbox name=Repeater1:_ctl1:cb_Id>
        </TD>
        <TD > 测试 TR1 </TD>
      </TR>
      <TR onmouseover="this.bgColor='#A4B6D7'" onmouseout="this.bgColor='#ECF5FF';" style="CURSOR: hand" bgColor=#ecf5ff>
        <TD >
          <INPUT id=Repeater1__ctl1_cb_Id onclick="w(this)" type=checkbox name=Repeater1:_ctl1:cb_Id>
        </TD>
        <TD > 测试 TR1 </TD>
      </TR>
    </TBODY>
    </TABLE>
    <SCRIPT>
    function w(obj)
    {
    if(obj.checked)
    {
    obj.parentElement.parentElement.style.backgroundColor="red";
    }
    else
    {
    obj.parentElement.parentElement.style.removeAttribute("backgroundColor");
    }
    }  
    </SCRIPT>