我是靠谱客的博主 文静石头,这篇文章主要介绍倒计时-自动跳转页面,现在分享给大家,希望可以做个参考。



复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path; String errorMsg = (String) request.getAttribute("errorMsg"); response.setStatus(response.SC_OK); %> <!doctype html> <html> <script language="JavaScript"> var times=6; clock(); function clock() { window.setTimeout('clock()',1000); times=times-1; document.getElementById('webRedictTips').innerHTML= times + "秒后自动跳转至登陆页面"; console.log(times); } </script> <head> </head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv= "Refresh" content= "5;url=/"> <body bgcolor="#EBEEF7"> <form action="<%=basePath%>"> <table width="100%" border="0" cellspacing="0" cellpadding="4" style="margin-top: 160px"> <tr height="30"> <td valign="middle" align="center"><font size="4" color="red"><%=errorMsg%></td> </tr> <tr height="30"> <td align="center"><span id="webRedictTips">5秒后自动跳转至登陆页面</span></td> </tr> <tr height="30"> <td valign="middle" align="center"><input type="submit" value="登陆"></td> </tr> </table> </form> </body> </html>



最后

以上就是文静石头最近收集整理的关于倒计时-自动跳转页面的全部内容,更多相关倒计时-自动跳转页面内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(71)

评论列表共有 0 条评论

立即
投稿
返回
顶部