<script language=javascript>
<!--function start(){
opentime=new Date();
}function a(){
nowtime=new date();
kaishitime=(nowtime.getTime()-opentime.getTime());
seconds=Math.round(kaishitime/1000);
if(seconds>5)
alert("超时");
else
alert("未超时");
}
-->
</sctipt>
<body onload=start()>
<input type=button value=开始 onclick=a()>
<!--function start(){
opentime=new Date();
}function a(){
nowtime=new date();
kaishitime=(nowtime.getTime()-opentime.getTime());
seconds=Math.round(kaishitime/1000);
if(seconds>5)
alert("超时");
else
alert("未超时");
}
-->
</sctipt>
<body onload=start()>
<input type=button value=开始 onclick=a()>
解决方案 »
- javaweb 按照字母分类是如何实现的?
- can u give a explain. of closure! from sandy945 blog.
- 运行得不到结果
- 如何改變<input>控件的type屬性
- 请教梅花雪本人,你写的日历控件在.net中使用出错的问题,
- 求验证2006-7-30 8:00(datetime)数据的正规式或函数
- js中有关将type为text设置为disabled后的问题,谢谢大家!
- 如何使注册页面不留痕迹?
- 怎样在<input type=button >上显示图片(在线等待)
- JQuarry 获取对象,然后将tr展开或者关闭
- 网络游戏公司急招网站开发人员!!!
- 如何将javascript的数字字符转换为数字??(在线等)
缺省是90秒<%
Server.ScriptTimeout = 240 '240秒
%>
不会有超时的控制.