Pop Under CPA Script [BLACK HAT SCRIPT]
For Everyone Who are not pretty much aware of popunder scripts.

Here is a small intro

Popunders are windows that pop under your LP. This example uses a popunder when someone clicks anywhere on your lp. T
hink about the potential with this: you ccould convert visitors on not one, but two offers.

Click here Signup or Login to view earning guides for mobile apps and websites. to see an example. In this example, a popunder (going to youtube) will open when someone clicks anywhere on the page or on my link.


Check out the code:

Code:
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>js-popunder demo</title>
<script src="jspopunder.js"></script>
<script>
var opened = false;
document.onclick = function() {
if (!opened) {
jsPopunder('http://www.youtube.com');
opened = true;
}
};
</script>
</head>
<body>

<p>Click anywhere on the page, or the link below to see the exit popunder. </p>
<p><a href="http://www.fileice.net">test</a></p>
</body>
</html>



This is the script in an HTML page. You also need a file in your LP directory called jspopunder.js which looks like this:


Code:
function jsPopunder(sUrl, sName, sWidth, sHeight) {
if (typeof(sName)===null || sName === '') sName = Math.floor((Math.random()*1000)+1);

sWidth = (sWidth || screen.width);
sHeight = (sHeight || screen.height); sHeight = sHeight-122;

var sOptions = 'toolbar=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width='+sWidth.toString()+',height='+sHeight.toString()+',screenX=0,screenY=0,left=0,top=0';

// create pop-up from parent context
var _parent = (top != self && typeof(top.document.location.toString())==='string') ? top : self;
var popunder = _parent.window.open(sUrl, sName, sOptions);
if (popunder) {
popunder.blur();
if (navigator.userAgent.indexOf('MSIE') === -1) {
popunder.params = { url: sUrl };
(function(e) {
with (e) {
if (typeof window.mozPaintCount != 'undefined' || typeof navigator.webkitGetUserMedia === "function") {
try {
var poltergeist = document.createElement('a');
poltergeist.href = "javascript:window.open('about:blank').close();document.body.removeChild(poltergeist)";
document.body.appendChild(poltergeist).click();
}catch(err){}
}
}
})(popunder);
}
window.focus();
try{ opener.window.focus(); }catch(err){}
}
}




To change the URL the pop under opens, change the ‘youtube.com’ in this line in the HTML document:

Code:
jsPopunder('http://www.youtube.com');


Test that on a PLAIN HTML website or a BLOGGER.
Thanks for sharing this man. I really appreciate Smile
(04-12-2014, 10:31 AM)kiranchandra Wrote: Signup or Login to view earning guides for mobile apps and websites.For Everyone Who are not pretty much aware of popunder scripts.

Here is a small intro

Popunders are windows that pop under your LP. This example uses a popunder when someone clicks anywhere on your lp. T
hink about the potential with this: you ccould convert visitors on not one, but two offers.

Click here Signup or Login to view earning guides for mobile apps and websites. to see an example. In this example, a popunder (going to youtube) will open when someone clicks anywhere on the page or on my link.


Check out the code:

Code:
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>js-popunder demo</title>
<script src="jspopunder.js"></script>
<script>
var opened = false;
document.onclick = function() {
if (!opened) {
jsPopunder('http://www.youtube.com');
opened = true;
}
};
</script>
</head>
<body>

<p>Click anywhere on the page, or the link below to see the exit popunder. </p>
<p><a href="http://www.fileice.net">test</a></p>
</body>
</html>



This is the script in an HTML page. You also need a file in your LP directory called jspopunder.js which looks like this:


Code:
function jsPopunder(sUrl, sName, sWidth, sHeight) {
if (typeof(sName)===null || sName === '') sName = Math.floor((Math.random()*1000)+1);

sWidth = (sWidth || screen.width);
sHeight = (sHeight || screen.height); sHeight = sHeight-122;

var sOptions = 'toolbar=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width='+sWidth.toString()+',height='+sHeight.toString()+',screenX=0,screenY=0,left=0,top=0';

// create pop-up from parent context
var _parent = (top != self && typeof(top.document.location.toString())==='string') ? top : self;
var popunder = _parent.window.open(sUrl, sName, sOptions);
if (popunder) {
popunder.blur();
if (navigator.userAgent.indexOf('MSIE') === -1) {
popunder.params = { url: sUrl };
(function(e) {
with (e) {
if (typeof window.mozPaintCount != 'undefined' || typeof navigator.webkitGetUserMedia === "function") {
try {
var poltergeist = document.createElement('a');
poltergeist.href = "javascript:window.open('about:blank').close();document.body.removeChild(poltergeist)";
document.body.appendChild(poltergeist).click();
}catch(err){}
}
}
})(popunder);
}
window.focus();
try{ opener.window.focus(); }catch(err){}
}
}




To change the URL the pop under opens, change the ‘youtube.com’ in this line in the HTML document:

Code:
jsPopunder('http://www.youtube.com');


Test that on a PLAIN HTML website or a BLOGGER.

THATS AWESOME
(02-16-2015, 02:49 PM)vorlian Wrote: Signup or Login to view earning guides for mobile apps and websites.THATS AWESOME

Please stop constantly bumping year old threads. Simply click the thanks button to show your appreciation.
Thank you so much i have tried it using FileVent and the results are awesome
Thank you so much i have tried it using it on wordpress
Thanks Bro....

This is what I was looking for. I just thought to hire a freelancer to do this job. But, You save me a few bucks.. Smile
Awesome, thank you for sharing this scripts brother


Return to Top CPAhero