Ask Code popup 1 lần cho wordpress

akiraz

Junior
Joined
Nov 14, 2011
Messages
236
Reactions
385
MR
0.086
Chat with me via Skype
Code:
<script type="text/javascript" language=javascript>
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 pX;
 
  pX =screen.width;
 
  if (!pX){
 
pX = document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;
 
  }
 
if(pX > 800){
 
  if(document.cookie.indexOf("pnpopup=popactive") == -1)
 
   {
 
document.cookie='pnpopup=popactive';				
 
params = 'width=800';
 
params += ', height=800';
 
params += ', top=0, left=0, resizable=yes, scrollbars=yes, location=yes';
 
 
var w = window.open(" wed cần chèn ", 'window3', params).blur(); 
 
 
 
window.focus();
 
   }
 
   }		
 
   });
 
});</script>
 

Announcements

Forum statistics

Threads
427,132
Messages
7,198,806
Members
179,472
Latest member
congtymoixanh
Back
Top Bottom