<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript">
document.write('<table border="1" width="800" align="center">');
var i=0;
while(i<1000){
if(i%10==0){
document.write('<tr onmouseover="show(this)" onmouseout="noshow(this) " bgcolor="'+bg+'">');
}
<html>
<head>
<title></title>
</head>
<body>
<script type="text/javascript">
document.write('<table border="1" width="800" align="center">');
var i=0;
while(i<1000){
if(i%10==0){
document.write('<tr onmouseover="show(this)" onmouseout="noshow(this) " bgcolor="'+bg+'">');
}
//输出1000格子
document.write('<td>'+i+'</td>');
i++;
if(i%10==0)
document.write('</tr>')
}
document.write('</table>');
document.write('<td>'+i+'</td>');
i++;
if(i%10==0)
document.write('</tr>')
}
document.write('</table>');
var ys=null
function show(obj){
ys=obj_bgColor;
obj.obj_bgColor="red";
}
function noshow(obj){
obj.obj_bgColor=ys;
}
function show(obj){
ys=obj_bgColor;
obj.obj_bgColor="red";
}
function noshow(obj){
obj.obj_bgColor=ys;
}
</script>
</body>
</html>
</body>
</html>