<td width="33%" onclick="location.href='2.html'" onmouseover="this.bgcolor=#ff0000" onmouseout="this.bgcolor=#00ff00">2</td>

解决方案 »

  1.   

    <table border="1" width="100%">
      <tr onclick="" bgColor='#EEEEFF'>
        <td width="33%">1</td>
        <td width="33%" onclick="location.href='2.html'" onmouseover="this.style.background='#ff0000'" onmouseout="this.style.background='#00ff00'">2</td>
        <td width="34%">3</td>
      </tr>
      <tr onclick="location.href='b.html'" bgColor='#EEEEFF'>
        <td width="33%">4</td>
        <td width="33%">5</td>
        <td width="34%">6</td>
      </tr>
    </table>注意:
    在上一行中点击1和3时入a.html,点击2时才进入2.html
    下一行整行中点击都会进入b.html
      

  2.   

    sorry
    刚才少复制了一个location.href='a.html'<table border="1" width="100%">
      <tr onclick="location.href='a.html'" bgColor='#EEEEFF'>
        <td width="33%">1</td>
        <td width="33%" onclick="location.href='2.html'" onmouseover="this.style.background='#ff0000'" onmouseout="this.style.background='#00ff00'">2</td>
        <td width="34%">3</td>
      </tr>
      <tr onclick="location.href='b.html'" bgColor='#EEEEFF'>
        <td width="33%">4</td>
        <td width="33%">5</td>
        <td width="34%">6</td>
      </tr>
    </table>
      

  3.   

    谢谢~~
    不过,好象不行呀
    我都是进入a.html
      

  4.   

    <table border="1" width="100%">
      <tr bgColor='#EEEEFF'>//去掉 onclick="location.href='a.html'"再也进入不了a.html了
        <td width="33%">1</td>
        <td width="33%" onclick="location.href='2.html'" onmouseover="this.style.background='#ff0000'" onmouseout="this.style.background='#00ff00'">2</td>
        <td width="34%">3</td>
      </tr>
      <tr onclick="location.href='b.html'" bgColor='#EEEEFF'>
        <td width="33%">4</td>
        <td width="33%">5</td>
        <td width="34%">6</td>
      </tr>
    </table>
      

  5.   

    <table border="1" width="100%">
      <tr ondblclick="location.href='a.html'" bgColor='#EEEEFF'>
        <td width="33%">1</td>
        <td width="33%" onclick="location.href='2.html'" onmouseover="this.style.background='#ff0000'" onmouseout="this.style.background='#00ff00'">2</td>
        <td width="34%">3</td>
      </tr>
      <tr onclick="location.href='b.html'" bgColor='#EEEEFF'>
        <td width="33%">4</td>
        <td width="33%">5</td>
        <td width="34%">6</td>
      </tr>
    </table>应该可以的啊。 双击第一行进入a.html 单击 第一行第二个单元格进入2.html
    单击第二行进入b.html