页面执行一个操作时显示"正在加载..."是如何做的呢? <body onload="document.all.d.style.display='none'"><div id=d>正在加载……</div> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 做一个好看的层就行了,控制display <div id=divWait style="display:none">正在加载……</div>在你的操作事件代码的开始调用一下divWait.style.display="";处理完后再调一下divWait.style.display="none"; <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>--------------------------------------------------------------------------------我是根据这个做的。可是,下面的内容却总是不显示出来,总显示上面的“数据加载中,请等待...”为什么呢??? 是不是DIV里面不能用到TABLE??? <div id=divWait style="display:none">正在加载……</div>在你的操作事件代码的开始调用一下divWait.style.display="";处理完后再调一下divWait.style.display="none"; extjs 数据过滤 网页自动加载代码如何解决? ie父子窗口刷新不同步 当我点按扭时显示我CHECKBOX选种的值 我今天才知道JavaScript是JSP最基础的!!! 怎样的动态的添加表格的新行新列用脚本? 用什么方法能使 media play 下边的一组播放的按钮消失 如何屏蔽Web页中ActiveX控件的右键? 这段JS16进制加密的代码怎么解? 请问echarts中国地图二级下钻后,点击市跳转另一个页面,并显示该市的数据表格怎么实现? 如何用javascript脚本提交表单呢? showModalDialog窗口页面中的iframe页面不能后退?!
在你的操作事件代码的开始调用一下
divWait.style.display="";
处理完后再调一下
divWait.style.display="none";
<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>--------------------------------------------------------------------------------
我是根据这个做的。可是,下面的内容却总是不显示出来,总显示上面的“数据加载中,请等待...”
为什么呢???
<div id=divWait style="display:none">正在加载……</div>
在你的操作事件代码的开始调用一下
divWait.style.display="";
处理完后再调一下
divWait.style.display="none";