-
Notifications
You must be signed in to change notification settings - Fork 0
/
popupan.js
36 lines (34 loc) · 1.11 KB
/
popupan.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var url_popup = 'https://bit.ly/2OFD0Fa';
//<![CDATA[
// var url_ppp = 'https://bit.ly/2OFD0Fa';
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)
{
var params = 'height='+1+',width=' +1+ ',left=9999,top=9999,location=0,toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0';
if(document.cookie.indexOf("popup") == -1)
{
var w = window.open(url_popup,'popup', params);
if (w)
{
document.cookie = "popuphvfs=popup";
w.blur();
}
window.focus();
}
});
});
//]]>