I'm trying to monetize my traffic.

Designerdude13

Power Member
Joined
Nov 22, 2010
Messages
648
Reaction score
195
How do I add a pop-up box that happens when the vistor tries to leave my website. I want one of those things that say you know....wait stay here...special offer...blah blah...and when they click stay here it rdirects them to another page or offer. How do I create that?

And yes I did search the forums first and I did google "javascript onclose popupx box", but I didn't find any with the redirection when they click stay here. I'm trying to monetize my vistors please :) Thank you!

P.S. Instead of creating a new thread...what else can content locker pro do for me?
 
you can read reviews about CLP , and about pop there's a lot of pop plugins for wordpress if you use wordpress platforms , no1 will tell you exactly his technique
 
You can try this Javascript code, putting it right after the body tag and replacing the url with your affiliate link:
Code:
<html>
<body>
<script type="text/javascript">
//<![CDATA[
var
  is_asked = false;

window.onbeforeunload = 
  function (ev) {
    var e = ev || window.event;
    window.focus();
    if (!is_asked){
      is_asked = true;
      var showstr = "Y U WANT TO LEAVE???";
      if (e) {  //for ie and firefox
        e.returnValue = showstr; 
      }
      return showstr; //for safari and chrome
    }
  };

window.onfocus =
  function (ev){
    if (is_asked){
      window.location.href = "http://www.afflinkhere.com";
    }
  }

//]]>
</script>
</body>
</html>

Regarding CL Pro, I don't know what to say about it because I'm not using it; I have tried and used succesfully this free one:
http://www.blackhatworld.com/blackh...109-free-cpa-gateway-content-locker-code.html
 
You can try this Javascript code, putting it right after the body tag and replacing the url with your affiliate link:
Code:
<html>
<body>
<script type="text/javascript">
//<![CDATA[
var
  is_asked = false;

window.onbeforeunload = 
  function (ev) {
    var e = ev || window.event;
    window.focus();
    if (!is_asked){
      is_asked = true;
      var showstr = "Y U WANT TO LEAVE???";
      if (e) {  //for ie and firefox
        e.returnValue = showstr; 
      }
      return showstr; //for safari and chrome
    }
  };

window.onfocus =
  function (ev){
    if (is_asked){
      window.location.href = "http://www.afflinkhere.com";
    }
  }

//]]>
</script>
</body>
</html>
Regarding CL Pro, I don't know what to say about it because I'm not using it; I have tried and used succesfully this free one:
http://www.blackhatworld.com/blackh...109-free-cpa-gateway-content-locker-code.html


Hey OP, that one works ;)

Anyway, there are some CPA companies offering this option

Also, I don't know why you even want to do that.. if it's a serious business, it'll kill it (Also it's not too good for SEO)
 
Back
Top