-
Notifications
You must be signed in to change notification settings - Fork 29
/
404.html
91 lines (42 loc) · 1.23 KB
/
404.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>该页面不存在</title>
<link rel="stylesheet" href="/assets/404/css/reset.css" />
<link rel="stylesheet" href="/assets/404/css/404.css">
<script src="/assets/js/jquery-3.5.1.min.js"></script>
</head>
<body>
<div class="auto">
<div class="container">
<div class="settings">
<i class="icon"></i>
<h4>很抱歉!没有找到您要访问的页面!</h4>
<p><span id="num">5</span> 秒后将自动跳转到首页</p>
<div>
<a href="./index.php" title="返回首页">返回首页</a>
<a href="javascript:;" title="上一步" id="reload-btn">上一步</a>
</div>
</div>
</div>
</div>
<script>
//倒计时跳转到首页的js代码
var $_num = $("#num");
var num = parseInt($_num.html());
var numId = setInterval(function () {
num--;
$_num.html(num);
if (num === 0) {
//跳转地址写在这里
window.location.href = "./index.php";
}
}, 1000);
//返回按钮单击事件
var reloadPage = $("#reload-btn");
reloadPage.click(function (e) {
window.history.back();
});
</script>
</body>
</html>