如何提示,正在查询,请等等,且有进度条。 开始时显示一个div,并且中间有一个进度条的gif图像,注意,此图中的进度的进度条走的得要越来越慢永远不能到头,结束时将这个div 隐藏即可.这是最简单的方法.可以有真实的进度条.不过很复杂.得用到结果集缓冲区的监视. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><title>数字天空页面加载</title><script language=javascript><!--document.write('<div id=LoadDiv style="padding-top: 50; padding-left: 50; font-size: 9pt;">'+'页面正在载入,请等待<span id="Loading"></span></div>');var setInterval=setInterval("Loading.innerText+='.'",300);var setInterval_=setInterval("Loading.innerText=''",15000);function window.onload(){ HiddenDiv.style.display="";//显示页面内容 LoadDiv.removeNode(true); clearInterval(setInterval); clearInterval(setInterval_);}--></script></head><body><div id=HiddenDiv style="display: none"><!--将你的网页所有内容都放在这个div之内即可--><img src="Http://www.csdn.net/images/homeimage/csdn.gif"></div></body></html> <meta name=keywords content="killerj,killerj.tk,killer.J,牛逼"><style type="text/css">/* Container of Loader */#seLoader{ width : 200px; /* set width of loader */ z-index : 1; margin : auto;}/* Box around loadbar */#seLoadBox{ height : 14px; /* set height */ z-index : 3; border : 1px solid; padding : 1px; background-color : #efefef; font-size : 0px; text-align : left; border-color: #678fcd}/* loadbar */#seLoadBar{ width : 0%; height : 100%; z-index : 4; background : #678fcd;}/* text (%) */#seLoadTxt{ z-index : 5; margin-top : -14px; font : 10px Verdana,Geneva,sans-serif; color: #ffffff}</style><script language="javascript">function seLoader(imgRoot){ this.root = imgRoot||'' this.runAt = 0 this.preImg = new Array() this.done = 0 this.f = 0 this.to = 0 eval(this.obj + '=this')}seLoader.prototype.runAtEnd = function(fct){ this.runAt = fct}seLoader.prototype.setImgs = function(){ this.imgs = arguments}seLoader.prototype.load = function(){ this.loadTxt = document.getElementById('seLoadTxt') this.bar = document.getElementById('seLoadBar').style for(i=0;(this.imgs[i]);i++) { this.preImg[i] = new Image() this.preImg[i].src = this.imgs[i].indexOf('http')==-1 ? this.root + this.imgs[i] : this.imgs[i] } this.checkLoad()}seLoader.prototype.drawLoader = function(preTxt){ this.startTxt = preTxt ? preTxt : '' document.writeln('<div id="seLoader"><div id="seLoadBox"><div id="seLoadBar"></div></div><div id="seLoadTxt">' + (this.startTxt!=''?this.startTxt:'0%') + '</div></div>')}seLoader.prototype.checkLoad = function(){ for(i in this.preImg) { if(this.preImg[i].complete) { this.f = new Number(i) this.f++ this.bar.width = Math.round(this.f/this.preImg.length*100) + '%' this.loadTxt.innerHTML = new String(this.startTxt+this.bar.width) status = this.preImg[i].src + ' loaded' } } if(this.f!=this.preImg.length) { clearTimeout(this.to) this.to = setTimeout(this.obj+'.checkLoad()',25) } else { status = this.imgs.length + ' images loaded.' if(this.runAt) eval(this.runAt) }}</script><script type="text/javascript">load = new seLoader('images/') // make loader object and set the directory (dir optional)load.runAtEnd('setTimeout(\'viewPage()\',10)') // run a script after loading (optional)load.setImgs // set the images('bg.jpg','killerj_r1_c1.jpg','killerj_r1_c2.jpg','killerj_r1_c3.jpg','killerj_r1_c4.jpg','killerj_r1_c5.jpg','killerj_r1_c6.jpg','killerj_r1_c7.jpg','killerj_r1_c8.jpg','biaoxiang-s.jpg','cahust.jpg','gongye-s.jpg','jixiang.jpg','nv1-s.jpg','nv2-s.jpg','shifang-s.jpg','shubiaoche-s.jpg','xitiqin-s.jpg','xitong1-s.jpg','xitong2-s.jpg','xitong3-s.jpg','xitong4-s.jpg','bgbg.gif','bgbgbg.gif')function viewPage(){ location.replace('main.asp')}function initLoader(){ load.load()}onload=initLoader</script></head><body background="images/bg.jpg"><table width="50%" height="70%" border="0"> <tr> <td align=center class="alpha"> <font color=#ffffff size=2>66.7 k</font> <script>load.drawLoader('now loading . . .')</script> </td> </tr> </table></body></html>演示地址:http://www.killerj.tk 多个submit按钮,怎么实现按回车键提交表单? script标签的困惑 怎么在循环中给控件依次加上事件...急求 怎么调用用c语言写的函数 看看你的程序思维,改一个非常用的程度 有新人吗互相加下位了积分 ***如何使复选框中至少有1项是选中的***急~~~谢谢高手帮忙! 急!求助!!关于字符串的截取问题——涉及汉字按字节截取 need help图形问题 如何对decimal(8,2)进行效验?如和让text为自读? 怎么能让下拉列表框打开列表 怎么设置才能让javascript在浏览器里失效
<head>
<title>数字天空页面加载</title>
<script language=javascript>
<!--
document.write('<div id=LoadDiv style="padding-top: 50; padding-left: 50; font-size: 9pt;">'+'页面正在载入,请等待<span id="Loading"></span></div>');
var setInterval=setInterval("Loading.innerText+='.'",300);
var setInterval_=setInterval("Loading.innerText=''",15000);
function window.onload()
{
HiddenDiv.style.display="";//显示页面内容
LoadDiv.removeNode(true);
clearInterval(setInterval);
clearInterval(setInterval_);
}
-->
</script>
</head><body>
<div id=HiddenDiv style="display: none">
<!--将你的网页所有内容都放在这个div之内即可-->
<img src="Http://www.csdn.net/images/homeimage/csdn.gif">
</div>
</body>
</html>
<style type="text/css">
/* Container of Loader */
#seLoader
{
width : 200px; /* set width of loader */
z-index : 1;
margin : auto;
}/* Box around loadbar */
#seLoadBox
{
height : 14px; /* set height */
z-index : 3;
border : 1px solid;
padding : 1px;
background-color : #efefef;
font-size : 0px;
text-align : left;
border-color: #678fcd
}/* loadbar */
#seLoadBar
{
width : 0%;
height : 100%;
z-index : 4;
background : #678fcd;
}/* text (%) */
#seLoadTxt
{
z-index : 5;
margin-top : -14px;
font : 10px Verdana,Geneva,sans-serif;
color: #ffffff
}
</style>
<script language="javascript">
function seLoader(imgRoot)
{
this.root = imgRoot||''
this.runAt = 0
this.preImg = new Array()
this.done = 0
this.f = 0
this.to = 0
eval(this.obj + '=this')
}
seLoader.prototype.runAtEnd = function(fct)
{
this.runAt = fct
}
seLoader.prototype.setImgs = function()
{
this.imgs = arguments
}
seLoader.prototype.load = function()
{
this.loadTxt = document.getElementById('seLoadTxt')
this.bar = document.getElementById('seLoadBar').style
for(i=0;(this.imgs[i]);i++)
{
this.preImg[i] = new Image()
this.preImg[i].src = this.imgs[i].indexOf('http')==-1 ? this.root + this.imgs[i] : this.imgs[i]
}
this.checkLoad()
}
seLoader.prototype.drawLoader = function(preTxt)
{
this.startTxt = preTxt ? preTxt : ''
document.writeln('<div id="seLoader"><div id="seLoadBox"><div id="seLoadBar"></div></div><div id="seLoadTxt">' + (this.startTxt!=''?this.startTxt:'0%') + '</div></div>')
}
seLoader.prototype.checkLoad = function()
{
for(i in this.preImg)
{
if(this.preImg[i].complete)
{
this.f = new Number(i)
this.f++
this.bar.width = Math.round(this.f/this.preImg.length*100) + '%'
this.loadTxt.innerHTML = new String(this.startTxt+this.bar.width)
status = this.preImg[i].src + ' loaded'
}
}
if(this.f!=this.preImg.length)
{
clearTimeout(this.to)
this.to = setTimeout(this.obj+'.checkLoad()',25)
}
else
{
status = this.imgs.length + ' images loaded.'
if(this.runAt) eval(this.runAt)
}
}</script>
<script type="text/javascript">
load = new seLoader('images/') // make loader object and set the directory (dir optional)
load.runAtEnd('setTimeout(\'viewPage()\',10)') // run a script after loading (optional)
load.setImgs // set the images
(
'bg.jpg','killerj_r1_c1.jpg','killerj_r1_c2.jpg','killerj_r1_c3.jpg','killerj_r1_c4.jpg','killerj_r1_c5.jpg','killerj_r1_c6.jpg','killerj_r1_c7.jpg','killerj_r1_c8.jpg','biaoxiang-s.jpg','cahust.jpg','gongye-s.jpg','jixiang.jpg','nv1-s.jpg','nv2-s.jpg','shifang-s.jpg','shubiaoche-s.jpg','xitiqin-s.jpg','xitong1-s.jpg','xitong2-s.jpg','xitong3-s.jpg','xitong4-s.jpg','bgbg.gif','bgbgbg.gif')function viewPage()
{
location.replace('main.asp')
}function initLoader()
{
load.load()
}
onload=initLoader
</script>
</head>
<body background="images/bg.jpg">
<table width="50%" height="70%" border="0">
<tr>
<td align=center class="alpha">
<font color=#ffffff size=2>66.7 k</font>
<script>load.drawLoader('now loading . . .')</script>
</td>
</tr>
</table>
</body>
</html>
演示地址
:http://www.killerj.tk