CJ支持网址跳转技术吗?查到3种相关资料
我经过多方搜索,查到3种相关资料,但找不到相关的CJ中文资料。
据我观察到的,1. meta refresh是有人用得比较多的,但是我没有见过把CJ的代码拿去跳的,很多都是用的AFF网站自身的ID拿去跳。
2. frame redirect,frame框架好像是被商家做禁止的吧?
3.PHP redirect,没见过有人用这种跳的。
到底哪种可以用来跳CJ呢?找不到相关的CJ中文资料。请高手有空来解一下吧。
实现网址跳转一共有3种方法:
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”); ?>
×××××××××××××××××××××
cj 支持 php redirect
这个有实际经验
文章出自 原创文章转载请留出处 http://www.918x.com/index.php
添加收藏:
