View Single Post
Old 06-23-2016, 03:22 AM  
ramzzy
Registered User
 
ramzzy's Avatar
 
Industry Role:
Join Date: Aug 2007
Location: Paris
Posts: 58
you should try this code for popunder:

PHP Code:
<script type="text/javascript">
var 
popURL 'http://www.url.com; 
var pop = 1; 
function redir()  { setTimeout("pdv()", 3000); pop=0; }
function pdv()  { window.location = popURL; }
</script> 
this one for popunder opened only after one click on your page :

PHP Code:
<script type="text/javascript">

function 
ScanCookie(variable)
    {
    
cook document.cookie;
    
variable += "=";
    
place cook.indexOf(variable,0);
    if (
place <= -1)
        return(
"0");
    else
        {
        
end cook.indexOf(";",place)
        if (
end <= -1)
            return(
unescape(cook.substring(place+variable.length,cook.length)));
        else
            return(
unescape(cook.substring(place+variable.length,end)));
        }
    }

function 
CreationCookie(nom,valeur,permanent)
    {
    if(
permanent)
        {
        
dateExp = new Date(2020,11,11);
        
dateExp dateExp.toGMTString();
        
ifpermanent '; expires=' dateExp ';';
        }
    else
        
ifpermanent '';
    
document.cookie nom '=' escape(valeur) + ifpermanent;
    }
    
function 
load_pop_power()
{
if(
ScanCookie("ex")==0)
    {
        
win2 =  window.open("http://www.url.com",'_blank',"top=60, left=60, width=900, height=900, scrollbars=1, resizable=1, toolbar=1, location=1, menubar=1, status=1, directories=1");
        
win2.blur()
        
window.focus()
        
CreationCookie("ex","oui",false)
    }
}
</script> 
__________________
Contact : [email protected]
Skype: mrluje
ICQ : 670 144 990
ramzzy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook