<html>
<head>
<title>定时刷新页面-</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<script> var s=doNothing();function doNothing()
{
sec=5;
return sec;
}function beginrefresh(){ if (s==1)
window.location.reload() ;
else{
s-=1 ;
cursec=s%60 ;
curtime=cursec+"秒后重刷本页!" ;
window.status=curtime ;
setTimeout("beginrefresh()",1000) ;
}
}
window.onload=beginrefresh();</script> <body bgcolor="#FFFFFF" text="#000000">
<p><img border="0" src="AD-Client01.gif" width="393" height="327"></p>
</body>
</html>
<head>
<title>定时刷新页面-</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<script> var s=doNothing();function doNothing()
{
sec=5;
return sec;
}function beginrefresh(){ if (s==1)
window.location.reload() ;
else{
s-=1 ;
cursec=s%60 ;
curtime=cursec+"秒后重刷本页!" ;
window.status=curtime ;
setTimeout("beginrefresh()",1000) ;
}
}
window.onload=beginrefresh();</script> <body bgcolor="#FFFFFF" text="#000000">
<p><img border="0" src="AD-Client01.gif" width="393" height="327"></p>
</body>
</html>
解决方案 »
- JSF h:commandLink 提交后只刷新页面不执行绑定的后台方法
- oop
- <c:forEach > 标签下,始终访问不到bean封装的属性。(解决了,但是没懂这个奇怪现象)
- 怎样获取file中的值
- 为什么用struts标签定义form时,不能定义name项?
- <s:radio list="mpmulugz" name="znsFileDirRule" />控件为什么输出的内容没有顺序,如何做顺序
- Hibernate关联属性
- resin-ee 3.0.7 要servlet2.4才能启动,是不是一定要装j2ee,我想单独下载servlet2.4可以吗?
- Hibernate 4 可用 JBoss 的 Logger 可是 怎么配置呢
- 请问JDK 到哪里下载? 它的名字叫什么? 谢谢!:)
- Java Web版 游戏帖~
- 提问无人理,再发!
或者去掉这一句把<body bgcolor="#FFFFFF" text="#000000">改为
<body bgcolor="#FFFFFF" text="#000000" onload = "beginrefresh()">