Welcome 微信登录

首页 / 脚本样式 / JavaScript / 表格美化之鼠标经过表格时高亮当前条颜色

表格美化之鼠标经过表格时高亮当前条颜色2013-02-14 Iteye heisetoufa效果:鼠标经过表格的某一行时,那行就会被高量显示

代码:

Html代码

<table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#efefef" bgcolor="#efefef">
<tr>
<td onMouseOut="this.bgColor="#efefef";this.borderColor="#efefef""; onMouseOver="this.bgColor="#cccccc"; this.borderColor="#000033""><center align="left">鼠标经过效果</center></td>
</tr>
<tr>
<td onMouseOut="this.bgColor="#efefef";this.borderColor="#efefef""; onMouseOver="this.bgColor="#cccccc"; this.borderColor="#000033"">鼠标经过效果</td>
</tr>
<tr>
<td onMouseOut="this.bgColor="#efefef";this.borderColor="#efefef""; onMouseOver="this.bgColor="#cccccc"; this.borderColor="#000033"">鼠标经过效果</td>
</tr>
<tr>
<td onMouseOut="this.bgColor="#efefef";this.borderColor="#efefef""; onMouseOver="this.bgColor="#cccccc"; this.borderColor="#000033"">鼠标经过效果</td>
</tr>
<tr>
<td onMouseOut="this.bgColor="#efefef";this.borderColor="#efefef""; onMouseOver="this.bgColor="#cccccc"; this.borderColor="#000033"">鼠标经过效果</td>
</tr>
</table>