-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmySearch.html
44 lines (44 loc) · 1.48 KB
/
mySearch.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
<!DOCTYPE html>
<html>
<head>
<title>404-对不起!您访问的页面不存在</title>
<style type="text/css">
.txtbg404{ width:499px; height:169px; margin:10px auto 0 auto; background-color: grey;}
.txtbg404 .txtbox{ width:390px; position:relative; top:30px; left:60px;color:#fff; font-size:13px;}
.txtbg404 .txtbox p {margin:5px 0; line-height:18px;}
.txtbg404 .txtbox .paddingbox { padding-top:15px;}
.txtbg404 .txtbox p a { color:#fff; text-decoration:none;}
.txtbg404 .txtbox p a:hover { color:#FC9D1D; text-decoration:underline;}
</style>
<script>
(function(){
var urlParameters = location.search;
if (urlParameters.indexOf('my_search_engine=') != -1) {
var url = urlParameters.split('my_search_engine=')[1];
if(url.length == 0) {
// 空 留在本页 404
}else{
if(url.length<4){
url = 'http://'+url;
}else if(url.substr(0,4) != 'http'){
url = 'http://'+url;
}
// 去除格式
url.replace(/%/g,'');
url = unescape(url);
window.location.href=url;}
}
return requestParameters;
})();
</script>
</head>
<body>
<div class="txtbg404">
<div class="txtbox">
<p>对不起,您请求的页面不存在、或已被删除、或暂时不可用</p>
<p class="paddingbox">请点击以下链接继续浏览网页</p>
<p>》<a style="cursor:pointer" onclick="history.back()">返回上一页面</a></p>
</div>
</div>
</body>
</html>