-
Notifications
You must be signed in to change notification settings - Fork 9
/
500.html
64 lines (62 loc) · 1.86 KB
/
500.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>