实现整个TD都有链接

这里重要的是 onclick="location. 这段!

<table width="99%"  border="1" cellspacing="0" cellpadding="0">
  <tr align="center" bgcolor="#999999">
    <td height="20" style="cursor:hand"onclick="location.href='http://www.cnblogs.com/bisonjob/'" onMouseOver ="this.style.backgroundColor='#F8F9FC'" onMouseOut ="this.style.backgroundColor='#FFFFFF'" onMouseDown="this.style.backgroundColor='#FF0000'">dfgdfg</td>
    <td height="20" style="cursor:hand"onclick="http://www.cnblogs.com/bisonjob/'" onMouseOver ="this.style.backgroundColor='#F8F9FC'" onMouseOut ="this.style.backgroundColor='#FFFFFF'" onMouseDown="this.style.backgroundColor='#FF0000'">dfgdfg</td>
    <td height="20" style="cursor:hand"onclick="http://www.cnblogs.com/bisonjob/'" onMouseOver ="this.style.backgroundColor='#F8F9FC'" onMouseOut ="this.style.backgroundColor='#FFFFFF'" onMouseDown="this.style.backgroundColor='#FF0000'">dfgdfg</td>
    <td height="20" style="cursor:hand"onclick="http://www.cnblogs.com/bisonjob/'" onMouseOver ="this.style.backgroundColor='#F8F9FC'" onMouseOut ="this.style.backgroundColor='#FFFFFF'" onMouseDown="this.style.backgroundColor='#FF0000'">dfgdfg</td>
  </tr>
</table>
posted @ 2005-03-31 16:01  吹吹风----NICK  阅读(830)  评论(0编辑  收藏  举报