当前位置: 首页 > 图文教程 > 网络编程 > Javascript > 贴一例:当所有图片下载完毕时,然后显示网页(有进度)

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 贴一例:当所有图片下载完毕时,然后显示网页(有进度)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-08-10   浏览: 365 ::
收藏到网摘: n/a

<!--在下载进度那一块由于过快,看不太出来,但你可以多添加几十副图片就可以了

随便写的,没仔细检测,实际应用时大家根据需要在完善吧.WIN2003+IE6测试通过-->

<body style='display:none'>
<TABLE id='' bgcolor='' cellspacing='2' cellpadding='2' border='1' width='100' height='100'>
<TR><TD>fdsafd</TD><TD>fdafd</TD></TR><TR><TD>fdaf</TD><TD>fdsadfas</TD></TR></TABLE>
<img src="http://www.lshdic.com/bbs/image/user24.gif">;
<img src="/A-A-A/2005/07/17/20050717100742101437_1.gif">;
<img src="/A-A-A/2005/07/17/20050717100742101435_2.jpg">;
<script>         //原作 风云舞,date 2003-8-16
 //建议运行时,删除脱机图片文件
document.body.style.display='none'
for(i=0;i<100;i++){
document.write ("其他HTML内容")
}
function jiancha(){
for(i=0;i<document.images.length-1;i++){
if(document.images[i].readyState!="complete"){document.title="下载进度:"+document.images.length + "/" + (i+1);break}
}
if(i!=document.images.length-1){return false}else{document.title="下载进度:"+document.images.length + "/" +(i+1);return true}
}
time1=setInterval("if(jiancha()){alert('图片下载完成');document.body.style.display='';clearInterval(time1);}",100)
</script>
<img src="/A-A-A/2005/07/17/20050717100742101436_3.gif">;
<img src="/A-A-A/2005/07/17/20050717100742101433_4.gif">;