以下是米粒在线分享的404页面的内容,自己创建一个404.html文件,将代码复制粘贴进去,然后修改自己的网址就可以了。红色字根据自身情况修改。
<!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>
</head>
<style>
.error{ text-align:center; width:300px; position:absolute; top:50%; left:50%; margin-left:-150px; margin-top:-150px;}
</style>
<script type="text/javascript">
function countDown(secs,surl){
//alert(surl);
var jumpTo = document.getElementById('jumpTo');
jumpTo.innerHTML=secs;
if(--secs>0){
setTimeout("countDown("+secs+",'"+surl+"')",1000);
}
else{
location.href=surl;
}
}
</script>
<body>
<center>
<table cellpadding="0" cellspacing="0" border="0" class="error">
<tr>
<td><a href="http://www.miliol.com"><img src="images/logo1.gif" border="0" /></a></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="font-size:14px; font-weight:bold;">很抱歉,您要访问的页面不存在。</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td style="font-size:14px; font-weight:bold;"><span id="jumpTo">7</span>秒后自动跳转到<a href="http://www.miliol.com">米粒在线</a></td>
</tr>
<script type="text/javascript">countDown(7,'http://www.miliol.com/');</script>
</table>
</center>
</body>
</html>