Jun 18, 2012
77 Views

Code popup under site

Written by

Code

function addEvent(obj, eventName, func){
if (obj.attachEvent)
{
obj.attachEvent("on" + eventName, func);
}
else if(obj.addEventListener)
{
obj.addEventListener(eventName, func, true);
}
else
{
obj["on" + eventName] = func;
}
}

addEvent(window, "load", function(e){
addEvent(document.body, "click", function(e)
{
// −−−−−−−−−−−−−− cau hinh chung cho cu so pop −−−−−−−−−−−−−−−−−−−−
var params = 'height='+1+',width=' +1+ ',left=9999,top=9999,location=0,toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0';
// −−−−−−−−−−−−−− pop 1 −−−−−−−−−−−−−−−−−−−−
if(document.cookie.indexOf("vatgia") == −1)
{
document.cookie = "popunder=vatgia";
var w = window.open("http://oliverleo.net",'vatgia', params);
if (w)
{
document.cookie = "popunder=vatgia";
w.blur();
}
window.focus();
}
/*
// −−−−−−−−−−−−−− pop 2 −−−−−−−−−−−−−−−−−−−−
if(document.cookie.indexOf("adf") == −1)
{
var w = window.open("http://oliverleo.net",'adf', params);
if (w)
{
document.cookie = "popunder1=adf";
w.blur();
}
window.focus();
}

// −−−−−−−−−−−−−− pop 3 −−−−−−−−−−−−−−−−−−−−

if(document.cookie.indexOf("popunderrdr=poprdr") == −1)
{
var w = window.open("http://oliverleo.net",'poprdr', params);
if (w)
{
document.cookie = "popunder2=popunderrdr=poprdr";
w.blur();
}
window.focus();
}
*/
// −−−−−−−−−−−−−−−−−−−− het−−−−−−−−−−−−−−−−−
});
});

Article Tags:
·
Article Categories:
Code/Web
    http://linholiver.com

    https://linholiver.com/diary/about/