时间:2022-06-27 08:49:58 | 栏目: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>
</head>
<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>
</html>