Home > Other Systems (CPVLab, iMobiTrax, P202, Track Revenue, Click, Google Analytics, etc.) > Normal Prosper202

Javascript needed to rotate offers/landers on P202 (4)


10-03-2013 03:49 PM #1 cyberdelicstudio (Member)
Javascript needed to rotate offers/landers on P202

Hey STMers.

Does anyone have a JS I can use on P202? I can't use PHP because I host my landers on Unbounce.

Thanks.

Jay.


10-03-2013 06:58 PM #2 JasperP (Member)

Try this.. Put this code on a new page and call it "redirect.html". Then link to it on your landing page.

Code:
    <script type="text/javascript">
        var links = new Array();
        
        links.push("http://www.affiliatelink1.com");
        links.push("http://www.affiliatelink2.com");
        links.push("http://www.affiliatelink3.com");
        
        var link = links[Math.floor(Math.random()*links.length)];
        
        document.location.href = link;
    </script>


10-03-2013 09:30 PM #3 cyberdelicstudio (Member)

Thanks Jasper!


10-04-2013 04:03 PM #4 caurmen (Administrator)

Nice share! I'm going to link this one from the PHP rotator article.


Home > Other Systems (CPVLab, iMobiTrax, P202, Track Revenue, Click, Google Analytics, etc.) > Normal Prosper202