- UID
- 277
金牌会员
- 经验
- 点
- 和山币
- 枚
- 积分
- 34171
- 阅读权限
- 70
- 注册时间
- 2005-11-4
- 最后登录
- 1970-1-1
|
script 代码 language="javascript">
定义变量 do_totals1()
{
document.all.pleasewaitScreen.style.pixelTop = (document.body.scrollTop + 50);
document.all.pleasewaitScreen.style.visibility="visible";
window.setTimeout('do_totals2()',1);
}
定义变量 do_totals2()
{
lengthy_calculation();
document.all.pleasewaitScreen.style.visibility="hidden";
}
定义变量 lengthy_calculation()
{
var x,y
for(x=0;x<1000000;x++)
{
y += (x * y) / (y - x);
}
}
</script>
<DIV ID="pleasewaitScreen" STYLE="position:absolute;z-index:5;top:30%;left:42%;visibility:hidden">
<TABLE BGCOLOR="#000000" BORDER="1" BORDERCOLOR="#000000" CELLPADDING="0" CELLSPACING="0" HEIGHT="100" WIDTH="150" ID="Table1">
<TR>
<TD WIDTH="100%" HEIGHT="100%" BGCOLOR="silver" ALIGN="CENTER" VALIGN="MIDDLE">
<FONT FACE="Arial" SIZE="4" COLOR="blue"><B>警告!<br>
哈哈,你中毒了,请联系天涯解决问题..........</B></FONT>
</TD>
</TR>
</TABLE>
</DIV>
<p align="center">
<input type="button" name="btn_calc" value="玩玩就上隐了,再弄个好玩的,点我看看什么效果" onclick="do_totals1()">
[ 本帖最后由 cnlove 于 2006-8-23 09:53 PM 编辑 ] |
|