鼠標移到表格單元上時,該表格單元的背景變色
<table border="1" width="40%"><tr onmouseover="changeColor(this)" onmouseout="this.bgColor='white'"><td >Line 1</td></tr>
<tr onmouseover="changeColor(this)" onmouseout="this.bgColor='white'"><td>Line 2</td></tr>
<tr onmouseover="changeColor(this)" onmouseout="this.bgColor='white'"><td>Line 3</td></tr>
</table>
posted on 2008-12-12 23:59 丁克設計 閱讀(307) 評論(0) 編輯 收藏 所屬分類: JavaScript技術文檔