Need Rotating Script for Offer in an iFrame

ThatSwissIMGuy

New member
Jun 17, 2009
626
3
0
Hi Guys

I need a rotating script to split Test multiple offers that are displayed in an iFrame.

Anybody have some simple code that can do it?

Thanks!
 


uh
this could help you if you can iframe a php page, and header within that page to another sill in the iframe. otherwise with a little effort you can make it work.

PHP:
<?php

$link[1] = "http://";
$link[2] = "http://";
$link[3] = "http://";

if (!isset($HTTP_cookie_VARS['link'])){
    $n = count($link);
    $rand = rand(1,$n);
    setcookie("link", $rand, time()+3600);
    header('location:'.$link[$rand]);
}else{
    $go = $link[$_COOKIE['link']];
    header('location:'.$go);
}

?>
 
  • Like
Reactions: newjersey
Sorry i'm not much of a programmer, so I'm kind of confused. Do I put that code onto offer.php and then iframe offer.php on my index.html site?

So I'd iFrame my own site which automatically redirects to the Offer itself?
 
Two options

You could do that, or you could create offer1.html which iframes the first offer and offer2.html which iframes the second one. and send traffic to the index.php with the script, this script will rotate between the two.

Good luck
 
Great, thanks for the help.

I think I'll do the first option since otherwise I have to change my PPC URL and fucking google has been taking forever to approve.

Thanks!