cats.jpg 
 
onMouseOver="this.style.backgroundColor='移過去的顏色';" onMouseOut="this.style.backgroundColor='移開後的顏色';"
 
只要將這兩個事件,加到你要變化的tr(列)或td(儲存格),就可以了。夠無痛了吧!?
 
另外加映:表格整列變色連結。

<table>
 <a href="連結"><tr onMouseOver="this.style.backgroundColor='移過去的顏色';" onMouseOut="this.style.backgroundColor='移開後的顏色';">
  <td>我是資料</td>
 </tr></a>
</table>

arrow
arrow
    全站熱搜

    Joy 發表在 痞客邦 留言(1) 人氣()