-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.jsp
37 lines (33 loc) · 938 Bytes
/
404.jsp
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
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>找不到页面</title>
<script language="javascript" type="text/javascript">
var second;
function go() {
if (navigator.appName.indexOf("Explorer") > -1) {
second = document.getElementById("totalSecond").innerText;
} else {
second = document.getElementById("totalSecond").textContent;
}
setInterval("redirect()", 1000);
}
function redirect() {
if (second <= 0) {
location.href = "main.do";
} else {
if (navigator.appName.indexOf("Explorer") > -1) {
document.getElementById("totalSecond").innerText = --second;
} else {
document.getElementById("totalSecond").textContent = --second;
}
}
}
</script>
</head>
<body onload="go();">
<h1>
找不到请求的页面,<span style="color: #FF0000" id="totalSecond">3</span>秒后返回首页。
</h1>
</body>
</html>