请选择 进入手机版 | 继续访问电脑版
开启辅助访问
帐号登录 |立即注册

前端常用网站自动跳转代码

 
1.HTML方式(可隐藏跳转后网址)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Panda社区</title>
<frameset framespacing="0" border="0" rows="0" frameborder="0">
<frame name="main" src="http://www.httple.net/" scrolling="auto" noresize></frameset>
</head>
<body></body>
</html>


2.HTML跳转
<meta http-equiv="refresh" content="0; url=http://www.httple.net">

3.PHP跳转
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.httple.net");
exit();
?>


4.JavaScript跳转
<script language="javascript">
top.location='http://www.httple.net';
</script>




回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

友情链接
  • 艾Q网

    提供设计文章,教程和分享聚合信息与导航工具,最新音乐,动漫,游戏资讯的网站。