鼠标经过表格变色
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<SCRIPT LANGUAGE="JavaScript" defer>
<!--
function runChgbgColor(TabID){
var obj=null;
function ChgbgColor(TabID){
var oRows=document.all(TabID).all.tags("TR");
for(var i=0;i<oRows.length;i++)
{
oRows[i].onmouseover=function(){
this.bgColor="#FF9966";}
oRows[i].onmouseout=function(){
this.bgColor="#FFFFFF";}
}
}
ChgbgColor(TabID);
}
//-->
</SCRIPT>
<table onMouseover="runChgbgColor('MtvTab')" id="MtvTab" style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=50% bgColor=#ffffff border=1>
<tr>
<td height=20>1</td>
<td height=20>2</td>
</tr>
<tr>
<td height=20></td>
<td height=20></td>
</tr>
</table>




浙公网安备 33010602011771号