页面文件
<style>
.tablebody {
font-size: 12px;
color: #000000;
text-decoration: none;
background-color: #F1F1F1;
text-align: center;
vertical-align: middle;
height: 25px;
behavior:url(1.htc) ;
}
</style>
<table border=1>
<tr class="tablebody">
<td>asdasd</td>
</tr>
</table>
1.htc
<PUBLIC:COMPONENT>
<PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="onOver()" />
<PUBLIC:ATTACH EVENT="onmouseout" ONEVENT="onOut()" />
</PUBLIC:COMPONENT>
<SCRIPT LANGUAGE="JScript">
function onOver()
{
runtimeStyle.background = "#FF0000";
runtimeStyle.cursor='hand';
}
function onOut()
{
runtimeStyle.background = "#6666FF";
runtimeStyle.cursor='hand';
}</SCRIPT>
<style>
.tablebody {
font-size: 12px;
color: #000000;
text-decoration: none;
background-color: #F1F1F1;
text-align: center;
vertical-align: middle;
height: 25px;
behavior:url(1.htc) ;
}
</style>
<table border=1>
<tr class="tablebody">
<td>asdasd</td>
</tr>
</table>
1.htc
<PUBLIC:COMPONENT>
<PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="onOver()" />
<PUBLIC:ATTACH EVENT="onmouseout" ONEVENT="onOut()" />
</PUBLIC:COMPONENT>
<SCRIPT LANGUAGE="JScript">
function onOver()
{
runtimeStyle.background = "#FF0000";
runtimeStyle.cursor='hand';
}
function onOut()
{
runtimeStyle.background = "#6666FF";
runtimeStyle.cursor='hand';
}</SCRIPT>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货