PHP跳转:
<?php
header("location:
http://www.martinko.cn")
?>
如果你要在服务器端跳转(需要支持ASP),可以这样:
<%
Response.Redirect "http://www.martinko.cn "
Response.End
%>
如果你要在客户端跳转,可以这样:
<script language="javascript" type="text/javascript">
window.location="http: //www.martinko.cn";;
</script>
如果你要让页面显示几秒钟之后跳转,可以在html代码的<head></head>部分加上这样的代码:
<meta http-equiv="refresh" content="3; url=http://www.martinko.cn">
(3秒钟后自动跳转到
www.martinko.cn)
以上三种是也比较常见,比较常用的网页跳转代码,当然还有别的,大家可以自己收集。
例如:<html>
<head>
<meta http-equiv="refresh" content="13; url=http://www.martino.cn">
</head>
<body>
<font color=red size="3" >正在等待网页跳转......</font>
</body>
</html>