而不是现在的很快就显示的
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=bg2312" />
<meta name="author" content="Chomo" />
<link rel="start" href="http://www.14px.com" title="Home" />
<title>利用box-sizing实现div仿框架</title>
<style type="text/css">
* { margin:0; padding:0;}
#demo{margin:44px auto;width:500px;height:70px;border:1px solid orange;}</style>
<script type="text/javascript">
function test(){
var demo = document.getElementById("demo");
var arr = Array("yellow","green","blue","pink","red","gray","#eee","#555","orange");
demo.style.backgroundColor = arr[Math.floor(Math.random() * (arr.length))];
demo.style.color = arr[Math.floor(Math.random() * (arr.length))];
m = setTimeout("test()",800);
demo.onmouseover = function(){
clearTimeout(m)
}
demo.onmouseout = function(){
m=setTimeout("test()",800);
}
}
window.onload = test;
</script>  
</head>
<body>  <h1 id="demo">
闪烁!
</h1>
</body>
</html>