johan 发表于 2005 年 2 月 24 日 18:43:37

谁给个错误页面自定义转向的代码

谢谢鸟

大傻瓜不傻 发表于 2005 年 2 月 24 日 18:48:35

原来 就有一个的
现在没有咯

johan 发表于 2005 年 2 月 24 日 18:49:24

下面是引用qbzj于2005-02-24 18:48发表的:
原来 就有一个的
现在没有咯
我现在手头有个,不太好看,想着个更好看的

rockhn 发表于 2005 年 2 月 24 日 19:22:02




Shtml版代码:

------------------------------------------------------------------------------------

<html>
<head>
<meta http-equiv='refresh' content='5; url=http://www.mydot.org<!--#echo var="REQUEST_URI" -->'>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
BODY {
     FONT-SIZE: 12px;
     SCROLLBAR-ARROW-COLOR: #000000;
     FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif";
     SCROLLBAR-BASE-COLOR: #828fa2;
}
TD {
     FONT-SIZE: 12px;
     FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif";
}
A:active {
     COLOR: #000000; TEXT-DECORATION: underline
}
A:visited {
     COLOR: #455164; TEXT-DECORATION: underline
}
A:hover {
     COLOR: #000000; TEXT-DECORATION: none
}
A:link {
     COLOR: #455164; TEXT-DECORATION: underline
}
</STYLE>
<TITLE>本站已经启用新的国际域名WWW.MyDoT.ORG,系统正在为你重新定向到新网站中的相应网页.......</TITLE>
</head>
<body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" style="table-layout:fixed; word-break:break-all">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="95%" align="center">
<tr align="center" valign="middle">
     <td>
     <table border="0" cellspacing="1" cellpadding="10" bgcolor="#555555" width="60%">
     <tr>
     <td bgcolor="#EEEEEE" align="center">
     <p><b>本站启用新的国际域名<a href=http://www.mydot.org>MyDoT.ORG</a>,系统正在为你重新定向到新站中的相应网页....</b></p></td>
     </tr>
     <tr>
     <td bgcolor="#EEEEEE" align="left">
     <p>目前你需要访问旧站YOYO.COM.RU中的页面:http://yoyo.com.ru<!--#echo var="REQUEST_URI" --><br><br>
     系统在5秒后将为你重新定向到新站<b>MyDoT.ORG</b>中相应的页面<br>
     如果你不想等待,请直接点击下面的连接进入:<a href=http://www.mydot.org<!--#echo var="REQUEST_URI" -->>http://www.mydot.org<!--#echo var="REQUEST_URI" --></a><br>
     

</td>
     </tr>
     </table>
     </td>
</tr>
</table>
</body>
</html>
















---------------------------------------------------------------------------
PHP版的代码:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>404</title>
<meta http-equiv='refresh' content='5; url=http://www.mydot.org<?=$_SERVER?>'>
</head>
<body>
本站起用新域名访问
你目前访问的页面是
http://yoyo.com.ru<?=$_SERVER['REQUEST_URI']?>
系统为你重新定向到新站相应的页面
http://www.mydot.org<?=$_SERVER['REQUEST_URI']?>
或等待5秒后,系统自动跳转到新站相应的页面
</body>
</html>


freedoms 发表于 2005 年 2 月 24 日 19:28:41

看不懂啊有严实吗?

℃派三少爺 发表于 2005 年 2 月 24 日 19:30:00

自己改改吧!~

:)

rockhn 发表于 2005 年 2 月 24 日 19:34:33

下面是引用℃派三少爺于2005-02-24 19:30发表的:
自己改改吧!~

:)

johan 发表于 2005 年 2 月 24 日 19:36:51

下面是引用rockhn于2005-02-24 19:22发表的:



Shtml版代码:

.......
谢谢了

sonic 发表于 2005 年 2 月 24 日 19:54:42

下面是引用rockhn于2005-02-24 19:22发表的:



Shtml版代码:

.......

天地无用 发表于 2005 年 2 月 24 日 20:38:05

怎么用呢
页: [1] 2
查看完整版本: 谁给个错误页面自定义转向的代码