这种思路不知道行不行<div id="d2" style="z-index:100;position:absolute;top:200px;left:200px;background:#ccc;border:#999 1px solid;width:500px;height:200px;line-height:200px">页面正在加载中... ...</div><div id="d1" style="z-index:99">
<script type="text/javascript">
for(var i=0;i<4000;i++){
document.write("nuM ");
}
document.body.onload = function(){
document.getElementById("d2").style.display = "none";
}
</script>
</div>

解决方案 »

  1.   

    是不是这种效果呀?
    http://chinavery.com/article/java/3048.html你‘另存为’到你电脑中,再慢慢查看它的代码吧。
      

  2.   

    http://community.csdn.net/Expert/topic/4413/4413695.xml?temp=.2793848
      

  3.   

    不行啊,
    我的是页面上有一个button,触发一个函数,运行这个函数要几秒种时间(读CPU卡),在函数的第一句话,就是显示“正在运行的”层,但是在运行完整个函数后才显示这个层!!