求助关于PHP lander的跳转
本帖最后由 Chord 于 2014-4-3 09:58 编辑Hey Guys,
最近我 spy了一个php的landing page
然后我准备用它来跑, 代码如下
<?
$keyword=$_GET['keyword'];
$affid=1;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<title>Play Now - Just Released!</title>
<meta name="robots" content="noindex">
<link href='http://fonts.googleapis.com/css?family=Rum+Raisin' rel='stylesheet' type='text/css'>
<style type="text/css">
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
body{line-height:1.5;}
ol,ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}
table{border-collapse:collapse;border-spacing:0}
body{background-color: #2d160c;font-family: 'Rum Raisin', sans-serif;}
.container{background:url('bg.jpg') no-repeat top center #000;width:775px;min-height:400px;margin:0 auto 0 auto;}
.container #content{padding-top:30px;position:relative;width:400px;text-align:center;right:-340px;}
h1{font-size:30px;margin-bottom:20px;font-weight:900;color:#fff;}
#loader{margin-top:80px}
.btn{width:200px;height:60px;margin:0 auto;line-height:60px;text-decoration:none;text-align:center;color:#fff;font-size:24px;display:block;margin-bottom:20px;border:3px solid #e0d697;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;background-color:#316309;-moz-box-shadow:0 1px 5px 0 rgba(0,0,0,0.75),inset 0 0 8px 2px rgba(52,255,47,0.75);-webkit-box-shadow:0 1px 5px 0 rgba(0,0,0,0.75),inset 0 0 8px 2px rgba(52,255,47,0.75);box-shadow:0 1px 5px 0 rgba(0,0,0,0.75),inset 0 0 8px 2px rgba(52,255,47,0.75);background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzI4NTIwNiIgc3RvcC1vcGFjaXR5PSIxIi8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzQwODMwYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:-moz-linear-gradient(bottom, #285206 0, #40830a 100%);background-image:-o-linear-gradient(bottom, #285206 0, #40830a 100%);background-image:-webkit-linear-gradient(bottom, #285206 0, #40830a 100%);background-image:linear-gradient(bottom, #285206 0, #40830a 100%);}
.btn:hover{color:#f9f958}
h2{font-size:30px;color:#fff;font-weight:bold;}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>
function step(obj) {
if(obj=="2")
{
$('#step1').hide();
$('#step2').show();
}
if(obj=="3")
{
$('#step2').hide();
$('#step3').show();
}
if(obj==4)
{
$('#step3').hide();
$('#step4').show();
$('#step4').find('#content').html('<div id="loader"><h2>Thank You!</h2><br><div id="spinner"><img src="loader.gif" alt="Loading"><br /><br /><br /><br /><br /></div></div>');
setTimeout(function() {
$('#loader h2').html('Checking Player Limit');
}, 1000);
setTimeout(function() {
$('#loader h2').html('3 Player Spaces Left');
}, 2500);
setTimeout(function() {
$('#loader h2').html('Please Register Now');
}, 3500);
setTimeout(function() {
window.location.replace("http://affiliategateways.go2cloud.org/aff_c?offer_id=4640&aff_id=<? echo $affid;?>&aff_sub=<?echo $keyword;?>");
}, 4500);
}
}
</script>
</head>
<body>
<div id="step1">
<div class="container">
<div id="content">
<h1>Are you a boy or a girl?</h1>
<div id="buttons">
<a href="#" class="btn">Boy</a>
<a href="#" class="btn">Girl</a>
</div>
<center>
</div>
</div>
<div id="audio"><center>
<object type="application/x-shockwave-flash" data="dewplayer-mini.swf" id="dewplayer" width="185" height="30" name="dewplayer">
<param name="movie" value="dewplayer-mini.swf" />
<param name="flashvars" value="mp3=boyorgirl.mp3&autostart=1" />
<param name="wmode" value="transparent" />
</object></center>
</div>
</div>
<div id="step2" style="display:none">
<div class="container">
<div id="content">
<h1>What's your favorite magic type?</h1>
<div id="buttons">
<a href="#" class="btn">Fire</a>
<a href="#" class="btn">Ice</a>
<a href="#" class="btn">Wind</a>
</div>
</div>
</div>
<div id="audio"><center>
<object type="application/x-shockwave-flash" data="dewplayer-mini.swf" id="dewplayer" width="185" height="30" name="dewplayer">
<param name="movie" value="dewplayer-mini.swf" />
<param name="flashvars" value="mp3=magics.mp3&autostart=1" />
<param name="wmode" value="transparent" />
</object></center>
</div>
</div>
<div id="step3" style="display:none">
<div class="container">
<div id="content">
<h1>What's your fighting style?</h1>
<div id="buttons">
<a href="#" class="btn">Attacker</a>
<a href="#" class="btn">Defender</a>
<a href="#" class="btn">Mixed</a>
</div>
</div>
</div>
<div id="audio"><center>
<object type="application/x-shockwave-flash" data="dewplayer-mini.swf" id="dewplayer" width="185" height="30" name="dewplayer">
<param name="movie" value="dewplayer-mini.swf" />
<param name="flashvars" value="mp3=fightings.mp3&autostart=1" />
<param name="wmode" value="transparent" />
</object></center>
</div>
</div>
<div id="step4" style="display:none">
<div class="container">
<div id="content">
</div>
</div>
<div id="audio"><center>
<object type="application/x-shockwave-flash" data="dewplayer-mini.swf" id="dewplayer" width="185" height="30" name="dewplayer">
<param name="movie" value="dewplayer-mini.swf" />
<param name="flashvars" value="mp3=thankyous2.mp3&autostart=1" />
<param name="wmode" value="transparent" />
</object></center></div>
</div>
<center>
<object type="application/x-shockwave-flash" data="dewplayer-mini.swf" id="dewplayer" width="185" height="30" name="dewplayer">
<param name="movie" value="dewplayer-mini.swf" />
<param name="flashvars" value="mp3=music.mp3&autostart=1" />
<param name="wmode" value="transparent" />
</object>
</center>
<!--- Trackig code goes here -->
</body>
</html>
我用的是cpvlab 所以先加上 tracking code 在body 之前
<input type="hidden" id="hidLocation" value="http://www.tracker.com/" />
<script type="text/javascript" src="http://www.tracker.com/landing.js"></script>
然后 把
setTimeout(function() {
window.location.replace("http://affiliategateways.go2cloud.org/aff_c?offer_id=4640&aff_id=<? echo $affid;?>&aff_sub=<?echo $keyword;?>");
改成
setTimeout(function() {
window.location.replace("http://www.tracker.com/base2.php");
然后使用http://www.tracker.com/loa/index.php?keyword=%KEYWORD% 测试连接 发现LP 停在http://www.tracker.com/base2.php 没有跳转到 相应的任务页面,
蛋疼 自己不懂任何语言 因此来求助 悬赏80个广告币。。。
你把这个http://affiliategateways.go2cloud.org/aff_c?offer_id=4640&aff_id=<? echo $affid;?>&aff_sub=<?echo $keyword;?>换了, 还用PHP有啥用呢? 直接改成html多好 http://www.tracker.com/base2.php
这个没有参数无法跳转吧 本帖最后由 路在何方 于 2014-4-3 10:13 编辑
河小马 发表于 2014-4-3 10:02 static/image/common/back.gif
http://www.tracker.com/base2.php
这个没有参数无法跳转吧
cpvlab好象就是这么个链接,没有参数
iMobiTrax上阵子我也遇到了类似的蛋痛问题,那时候是直接跳到offer页,根本不经LP,后来问客服,客服说是不是升级3.5没有更新tracking.php,但那时候我用的是3.4,然后一怒直接升级到3.5问题就不存在了 路在何方 发表于 2014-4-3 10:11 static/image/common/back.gif
cpvlab好象就是这么个链接,没有参数
他这样使用的话,是无法读取到 JS 中的参数的 河小马 发表于 2014-4-3 10:02 static/image/common/back.gif
http://www.tracker.com/base2.php
这个没有参数无法跳转吧
CPVlab 对于LP 是这样的 任务连接改成base2.php 然后 在body前加上Code 就可以自动跳转到OFFER了 但是这个不行。。 Chord 发表于 2014-4-3 10:34 static/image/common/back.gif
CPVlab 对于LP 是这样的 任务连接改成base2.php 然后 在body前加上Code 就可以自动跳转到OFFER了 但是这 ...
多研究测试一下吧
比如说不要把base2.php这个放函数里,直接按常规位置放一个试一下 本帖最后由 Chord 于 2014-4-3 11:34 编辑
crazysnail 发表于 2014-4-3 11:10 static/image/common/back.gif
你把这个换了, 还用PHP有啥用呢? 直接改成html多好
改成Html 以后竟然就可以了 谢谢了
Chord 发表于 2014-4-3 11:29 static/image/common/back.gif
改成Html 以后竟然就可以了 谢谢了
最近在学php, 没想到还帮上忙了;P crazysnail 发表于 2014-4-3 20:08 static/image/common/back.gif
最近在学php, 没想到还帮上忙了
:D:D 正好广告币没地方用 哈哈
页:
[1]