Copy Code code as follows:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> Untitled Document </title>
<script type= "Text/javascript" >
</script>
<script type= "Text/javascript" >
var x=400;
function Dianji () {
document.getElementById (' Yincang '). style.height=x+ ' px ';
x--;
var time=settimeout (' Dianji () ', 10);
if (x==200) {
Cleartimeout (time);
Document.body.bgcolor= ' Red ';
document.getElementById (' Yincang '). style.display= ' None ';
document.getElementById (' Xianshi '). style.display= ' block ';
}
}
</script>
<script type= "Text/javascript" >
</script>
<style type= "Text/css" >{display:block}</style>
<body onload= "Dianji ()" >
<div id= "Yincang" style= "background: #CCC; height:400px; " ></div>
<div id= "Xianshi" style= "background: #0F0; height:200px; Display:none; " >fdafda</div>
<div style= "background: #666; height:2000px; " ></div>
</body>