1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need some kind of wordpress redirect script that can do this sneaky action...

Discussion in 'Cloaking and Content Generators' started by ronmojohny, Oct 14, 2012.

  1. ronmojohny

    ronmojohny Regular Member

    Joined:
    Dec 9, 2008
    Messages:
    283
    Likes Received:
    59
    I need a wordpress friendly script that does the following:

    I would like to add a popup lightbox opt-in form on my site (like popup domination or similar)

    But if the visitor closes the box, the page would redirect to another page on my site. The reason I want to do this, is because the site is an adsense site, and the page ranks for a low-paying keyword. I want to refresh the page to one that has a much higher paying keyword, so if they click an ad, I'll get more revenue. Anyone know of a solution?
     
  2. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,066
    Likes Received:
    2,872
    Gender:
    Male
    You could simply use colorbox there!
    Check out this code :
    Code:
    $("#your_link").colorbox({
            width: "50%",
            inline: true,
            href: "#myForm",
            onclose: function() {
                document.location.href="http://blabla.com";
            }
        });