|
发表于 2005 年 12 月 1 日 20:06:32
|
显示全部楼层
http://demo.5910.cn/404.html
这个怎么样?你可以自己美化下
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/url]">
- <html xmlns="[url]http://www.w3.org/1999/xhtml[/url]">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>404 您输入的地址无法访问</title>
- </head>
-
- <body>
- <style type="text/css">
- <!--
- body {
- font-size: 12px;
- font-family: Tahoma, Arial, "宋体";
- background-color: white;
- margin: 0px;
- padding: 0px;
- }
-
- a:link,
- a:visited {
- text-decoration: none;
- color: #333399;
- }
- a:hover {
- text-decoration: underline;
- color:#0000FF;
- }
- hr {
- height: 1px;
- border: 0;
- border-top: 1px solid #CCCCCC;
- }
-
- /****** Main Layout Styles ******/
- #wrapper {
- text-align: center;
- margin: 10px;
- }
- #header {
- padding: 6px;
- font-size: 14px;
- border: solid 1px #CCCCCC;
- background-color: #F8F8F5;
- }
- #header h4{
- padding: 5px;
- font-size: 16px;
- font-weight: bold;
- display: inline;
- }
- .desc {
- padding: 5px;
- color: #666666;
- font-size: 12px;
- }
- .content {
- width: 100%;
- }
- .section{
- width: 450px;
- margin: 10px;
- margin-bottom: 15px;
- }
- .leftform{
- float: left;
- text-align: left;
- }
- #footer {
- clear: both;
- color: #999999;
- padding: 10px;
- padding-left: 20px;
- }
- /*********** Content Styles ***********/
- .section h4 {
- margin: 2px;
- padding: 5px;
- font-size: 12px;
- font-weight: bold;
- color: #333333;}
- form{display: inline;}
- .categories strong{
- color: #999999;
- }
- -->
- </style>
-
- <div id="wrapper">
-
- <div id="header">
- <h4>您输入的地址无法访问</h4>
- <div class="desc">有可能是您输入的地址有误或者是该网站暂时无法访问</div>
- </div>
-
- <div class="content">
- <script type="text/javascript">
- var url = external.max_getString(0);
- var autoRefresh=external.max_getString(1);
- if(autoRefresh=="1"){
- autoRefresh=1;
- }else{
- autoRefresh=0;
- }
-
- function HTMLEncode(str){
- if(str==undefined){ return ""; }
- str = str.replace(/\&/g, "&");
- str = str.replace(/\>/g, ">");
- str = str.replace(/\</g, "<");
- str = str.replace(/\"/g, """);
- str = str.replace(/\'/g, "'");
- return str;
- }
-
- function enableAutoRefresh(flag){
- if(flag==1){
- external.put_string("1",url);
- location.reload();
- }else{
- external.put_string("",url);
- location.reload();
- }
- }
-
- function go(url){
- document.location=url;
- }
-
- if(autoRefresh==1){
- window.setInterval("go(url)",5000);
- }
- </script>
- <div class="section">
- <h4>您输入的地址无法访问:</h4>
- <div style="margin-left: 20px;">
- <script>document.write('<a href="'+HTMLEncode(url)+'">'+HTMLEncode(url)+'</a>')</script>
-
- <script>
- if(autoRefresh==0){
- document.write('<a href="javascript:enableAutoRefresh(1)">[每 5 秒自动重试]</a>')
- }else{
- document.write('<a href="javascript:enableAutoRefresh(0)">[停止自动重试]</a>')
- }
- </script>
- </div>
- </div>
-
- <div class="section">
- <h4>您可以通过搜索查找相关资源:</h4>
- <div class="leftform">
- <form action="[url]http://www.baidu.com/baidu[/url]" target="_blank">
- <table border="0" cellpadding="0" cellspacing="5">
- <tr>
- <td ><input type="text" name="word" id="word" size="40"></td>
- <td valign="top"><input type="submit" size="15" value="百度搜索"></td>
- </tr>
- </table>
- </form>
- <script>document.getElementById("word").value=url;</script>
-
- <form action="[url]http://www.google.com/search[/url]" target="_blank">
- <table border="0" cellpadding="0" cellspacing="5">
- <tr>
- <td ><input type="text" name="q" id="q" size="40"></td>
- <td valign="top"><input type="submit" size="15" value="Google搜索"></td>
- </tr>
- </table>
- </form>
- <script>document.getElementById("q").value=url;</script>
-
- <form action="[url]http://search.yahoo.com/bin/search[/url]" target="_blank">
- <table border="0" cellpadding="0" cellspacing="5">
- <tr>
- <td ><input type="text" name="p" id="ya" size="40"></td>
- <td valign="top"><input type="submit" size="15" value="Yahoo搜索"></td>
- </tr>
- </table>
- </form>
- <script>document.getElementById("ya").value=url;</script>
- </div>
- </div>
-
- </div>
-
- <div id="footer">
- Powered By quakemachine.com
-
- </div>
-
- </div>
- </body>
- </html>
复制代码 |
|