-
Notifications
You must be signed in to change notification settings - Fork 7
/
404.php
78 lines (73 loc) · 2.11 KB
/
404.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>404 - 页面未找到</title>
<style type="text/css">
body {
background-color: #0099CC;
color: #FFFFFF;
font-family: Microsoft Yahei, "Helvetica Neue", Helvetica, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
margin-left: 100px;
}
a{
text-decoration: none;
color: #fff;
}
a:hover{
color: pink;
text-decoration: none;
}
.face {
font-size: 100px;
}
p{
font-size: 24px;
padding: 8px;
line-height: 40px;
}
.tips {
font-size: 16px
}
/*针对小屏幕的优化*/
@media screen and (max-width: 600px) {
body{
margin: 0 10px;
}
p{
font-size: 18px;
line-height: 30px;
}
.tips {
display: inline-block;
padding-top: 10px;
font-size: 14px;
line-height: 20px;
}
}
</style>
</head>
<body>
<script>
var i = 10; //这里是倒计时的秒数
var intervalid;
intervalid = setInterval("cutdown()", 1000);
function cutdown() {
if (i == 0) {
window.location.href = "<?php $this->options->siteUrl(); ?>"; //倒计时完成后跳转的地址
clearInterval(intervalid);
}
document.getElementById("mes").innerHTML = i;
i--;
}
window.onload = cutdown;
</script>
<span class="face">:(</span>
<p>您访问的页面没有找到。<br>
<span id="mes"></span> 秒后转回<a href="<?php $this->options->siteUrl(); ?>">我的个人博客</a>,您可以尝试继续搜索您所需要的信息。<br>
<span class="tips">如果您想了解更多信息,则可以联系站长: 比如留言……</span>
</p>
</body>
</html>