3种CJ可用的网址跳转技术

[复制链接]
查看: 1570   回复: 10
发表于 2009-2-19 22:00:23 | 显示全部楼层 |阅读模式
1. meta refresh
你只需要在你的html页面的 <head> 段加入如下代码

CODE:

<meta http-equiv=”refresh” content=”5; url=http://www.yoursite.com/” />

其中 5 表示 5秒,即5秒后跳转到你的网站
2. frame redirect
使用框架将目标页面内嵌到你的网页中,代码

CODE:

<head><script>window.status = ‘ ‘;</script>
<meta http-equiv=”Content-Language” content=”en-us”>
<title></title>
<meta name=”keywords” content=”">
<meta name=”description” content=”">
<link rel=”stylesheet” type=”text/css” href=”">
</head>
<frameset border=”0″ frameborder=”0″ marginleft=”0″ margintop=”0″ marginright=”0″ marginbottom=”0″ rows=”100%,*”>
<frame src=”YOUR AFF LINK GOES HERE” scrolling=”auto” frameborder=”no” border=”0″ noresize>
<frame src=”UntitledFrame-4″ frameborder=”no” scrolling=”no”noresize marginwidth=”0″ marginheight=”0″ topmargin=”0″ border=”0″>
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>


3.PHP redirect
国外主机清一色都是LINUX+APACHE+PHP+MYSQL的配置,一般你的虚拟主机都应该支持PHP,使用PHP REDIRECT 很简单,你只需要在页面头部加入一行代码即可,即使你对程序一窍不通。

CODE:

<? header(”Location:Your URL goes here”); ?>

×××××××××××××××××××××

评分

参与人数 1 +5 收起 理由
dxszzcylm + 5

查看全部评分

发表于 2009-2-20 00:54:18 | 显示全部楼层
很实用的方法!
回复 支持 反对

使用道具 举报

发表于 2009-2-21 01:14:46 | 显示全部楼层
第三种方法可以用在wp上不?
回复 支持 反对

使用道具 举报

发表于 2009-2-21 05:01:37 | 显示全部楼层
很使用,收藏起来。谢谢
回复 支持 反对

使用道具 举报

发表于 2009-2-21 09:23:14 | 显示全部楼层
不错的帖子  谢谢楼主分享
























3种CJ可用的网址跳转技术
极品法宝修补神 很纯很暧昧
回复 支持 反对

使用道具 举报

发表于 2009-3-1 01:04:47 | 显示全部楼层
谢谢            
回复 支持 反对

使用道具 举报

发表于 2009-3-31 23:07:32 | 显示全部楼层
学习了,了解下!3种CJ可用的网址跳转技术
回复 支持 反对

使用道具 举报

发表于 2009-3-31 23:15:00 | 显示全部楼层
用301不就行了吗????????????????//
回复 支持 反对

使用道具 举报

发表于 2009-4-1 02:01:47 | 显示全部楼层
谢谢楼主 学习中。。。。。。
回复 支持 反对

使用道具 举报

发表于 2009-5-11 08:24:22 | 显示全部楼层
不懂不过还是谢谢楼主,谢谢你们这样的热心高手
回复 支持 反对

使用道具 举报

发表于 2009-5-16 09:11:09 | 显示全部楼层
看看@!!!!!!!!!!!!!
回复 支持 反对

使用道具 举报

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

本版积分规则