<body onload="document.all.d.style.display='none'">
<div id=d>正在加载……</div>

解决方案 »

  1.   

    做一个好看的层就行了,控制display
      

  2.   

    <div id=divWait style="display:none">正在加载……</div>
    在你的操作事件代码的开始调用一下
    divWait.style.display="";
    处理完后再调一下
    divWait.style.display="none";
      

  3.   

    <html><head><title>梅花雪的页面加载</title>
    <script language="javascript" type="text/javascript">
        <!--
           document.write("<div id='loadDiv' style='padding-top: 50px; padding-left: 50px'>数据加载中,请等待...<span id='loading'></span></div>"); 
           var setInterval1 = window.setInterval("document.getElementById('loading').innerHTML += '.'", 300);
           var setInterval2 = window.setInterval("document.getElementById('loading').innerHTML = ''", 15000);
           window.onload = function()
           {   
             document.getElementById("hiddenDiv").style.display="";          document.getElementById("loadDiv").parentNode.removeChild(document.getElementById("loadDiv"));    
             window.clearInterval(setInterval1);   
             window.clearInterval(setInterval2); 
           }
        // -->
        </script></head>
    <body>
    <div id="hiddenDiv" style="display: none;"> <!-- 将你的网页所有内容都放在这个div之内即可 --></div></body>--------------------------------------------------------------------------------
    我是根据这个做的。可是,下面的内容却总是不显示出来,总显示上面的“数据加载中,请等待...”
    为什么呢???
      

  4.   

    是不是DIV里面不能用到TABLE???
      

  5.   


    <div id=divWait style="display:none">正在加载……</div>
    在你的操作事件代码的开始调用一下
    divWait.style.display="";
    处理完后再调一下
    divWait.style.display="none";