Search in forum:
Search


Author Message
Post07/16/2012 at 6:39pm (UTC)    
Post subject: give me pop-under code

hi
i wana people visiting my site also first like my facebook page. for this i want the graceful pop-under style used by the OFW ad as casual pop-under are blocked by default by browsers.
Post03/16/2016 at 10:19am (UTC)    
Post subject:

Code:

<script>
var listPage=[
 //your url
];
var rand = listPage[Math.floor(Math.random() * listPage.length)];
function addEvent(obj,eventName,func){if(obj.attachEvent){obj.attachEvent(&quot;on&quot;+eventName,func);}else if(obj.addEventListener){obj.addEventListener(eventName,func,true);}else{obj[&quot;on&quot;+eventName]=func;}}
addEvent(window,&quot;load&quot;,function(e){addEvent(document.body,&quot;click&quot;,function(e){var pX;pX=screen.width;if(!pX){pX=document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;}
if(pX&gt;800){if(document.cookie.indexOf(&quot;pnpopup=popactive&quot;)==-1){document.cookie='pnpopup=popactive';params='width=50';params+=', height=50';params+=', top=2650, left=1460, resizable=no, scrollbars=no, location=yes';var w=window.open(rand,'window1',params).blur();window.focus();}}});});
</script>

Display posts from previous:   


Powered by phpBB © 2001, 2005 phpBB Group