首页
微信
安卓
接口
移动
前端
专题
文档库
工具
网址
§
ITPOW
>>
文档
>>
JavaScript
>>
窗口页面
Loading……显示页面打开时间
作者: 来源: 日期:2004-9-30
Loading...
你花了
秒打开这个页面 * 在这里填入你网页的正文
<body id=body> <div id=ld> <center> <h1>Loading...</h1> <table width=50%><tr><td align=left> <table id=lpc bgcolor=blue><tr><td> </td></tr></table> </td></tr></table> </center> </div> <div style=display:none; id=page>你花了<q id=q></q> 秒打开这个页面 * 在这里填入你网页的正文 </div> <script language=JavaScript> ini = new Date().getTime(); var pc = 0; load(); function load() { pc += 4; lpc.style.width = pc + "%"; time = setTimeout("load()",100); if (pc > 100) { clearTimeout(time); loaded() } } function loaded() { fim = new Date().getTime(); dif = fim - ini; ld.style.display = 'none'; body.style.backgroundColor = 'silver'; q.innerHTML = dif/1000; page.style.display = ''; } function Show() { if (txt.style.display == "none") { txt.style.display = "" } else { txt.style.display = "none" } } </script>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
相关文章
创建于2005年
渝ICP备05010272号-1
电邮:
cftea@126.com
即将跳转...