<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<script language="javascript">
window.onload = function() {
doubleBgColor(document.getElementById("table1"),"#cccccc","#ffcccc")
}
function doubleBgColor(Table,Bg1,Bg2) {
for (var i=0;i<Table.rows.length;i++) Table.rows[i].bgColor=i%2?Bg2:Bg1;
}
</script>
</head>
<body>
<table border="0" cellpadding="1" cellspacing="1" id="table1" width="500" bgcolor="#000000">
<TR><TD>单 数行 </TD></TR>
<TR><TD>双 数行</TD></TR>
<TR><TD>单 数行</TD></TR>
<TR><TD>双 数行</TD></TR>
<TR><TD>单 数行</TD></TR>
<TR><TD>双 数行</TD></TR>
<TR><TD>单 数行</TD></TR>
<TR><TD>双 数行</TD></TR>
<TR><TD>单 数行</TD></TR>
<TR><TD>双 数行</TD></TR>
<TR><TD>单 数行</TD></TR>
<TR><TD>双 数行</TD></TR>
</table>
<table><tr><td width="100" height="100" οnmοuseοver="style.backgroundColor='#C86F70'" οnmοuseοut="style.backgroundColor='#DDC676'" bgcolor="#DDC676">ihandu</td></tr></table>
</body>
</html>
<style>
th {font-weight: normal; text-align:left; background: #CCCCCC}
td {background: #ffffff}
body{background:#000000}
</style>
<table>
<tr>
<th>Color First</th>
</tr>
<tr>
<td>Color Second</td>
</tr>
<tr>
<th>Color First</th>
</tr>
<tr>
<td>Color Second</td>
</tr>
<tr>
<th>Color First</th>
</tr>
<tr>
<td>Color Second</td>
</tr>
</table>