变色九宫格
<!doctype html>
<html>
<head>
<meta content="1" http-equiv="refresh">
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body bgcolor="#000">
<script>
function color_(){
return"#"+Math.floor(Math.random()*16777215).toString(16);
}
document.write("<div style='width:156px;height:156px;margin:0 auto; background:#FBF7F7;padding:1px;'>");
for(i=1;i<10;i++){
document.write("<div style='width:50px;height:50px;margin:1px;background:"+color_()+";float:left;'>");
document.write("</div>");
}
document.write("</div>");
</script>
<div>
<div></div>
</div>
</body>
</html>