generated from insoxin/API
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
64 lines (62 loc) · 1.86 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>正在连接服务器...</title>
<style type="text/css">
::-moz-selection { background: #fff; text-shadow: none; }
::selection { background: #fff; text-shadow: none; }
body { font-family: cursive, NSimSun; background: #000; color: #C0C0C0; font-size: 12pt; }
#errormsg { display: none }
#blink { display: inline; color: #0F0; }
</style>
</head>
<body>
<div id="echoerror"></div>
<div id="errormsg">
正在向服务器发起请求....<br>
服务器找不到您所请求的文件或脚本<br>
正在重试#1....<br>
服务器找不到您所请求的文件或脚本 #1<br>
正在重试#2....<br>
服务器找不到您所请求的文件或脚本 #2<br>
正在重试#3....<br>
服务器找不到您所请求的文件或脚本 #3<br>
失败, 未找到
</div>
<script type="text/javascript">
var charIndex = -1;
var stringLength = 0;
var inputText;
function writeContent(){
inputText = document.getElementById('errormsg').innerHTML;
if(charIndex==-1){
charIndex = 0;
stringLength = inputText.length;
}
var initString = document.getElementById('echoerror').innerHTML;
initString = initString.replace(/<span.*$/gi,"");
var theChar = inputText.charAt(charIndex);
var nextFourChars = inputText.substr(charIndex,4);
if(nextFourChars=="...."){
time = 3000;
}else{
time = 50;
}
if(nextFourChars=='<br>'){
theChar = '<br>';
charIndex+=3;
}
initString = initString + theChar + "<span id='blink'>▌</span>";
document.getElementById('echoerror').innerHTML = initString;
charIndex = charIndex/1 +1;
if(charIndex<=stringLength){
setTimeout('writeContent(false)',time);
}else{
document.title = "未找到";
}
}
writeContent();
</script>
</body>
</html>