内容 |
<script> var i; function longtime() { i=0; b1.style.cursor=wait; b1.disabled=true; timediterations(); } function timediterations() { if (i<=140) { d1.innertext=正在装载.........+math.round(i/1.4)+%; d2.style.width=i; // following statements represents a calculation that takes some time var j=0; while (j<=10000) j++; settimeout(timediterations();, 1); i++; } else { b1.style.cursor=; b1.disabled=false; } } </script> <body id=b1 onload=longtime(); leftmargin=250 topmargin=200> <div id=d1>正在装载.....</div> <div id=d2 style=background-color:#1b3679></div> </body>
|