home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 88 / PIWD88.iso / pc / CONTENTS / BONUS / FULL / OXYGEN / INDEX_FILES / CODE.HTM < prev    next >
Text File  |  2002-08-19  |  1KB  |  38 lines

  1. sd = sc = ja = ck = pl = ""; jsv = "1.0";
  2. document.cookie = "eztest=true";
  3. ck = (document.cookie.indexOf("eztest") >= 0 ? 1 : 0);
  4. ja = (navigator.javaEnabled() ? 1 : 0);
  5. bn = navigator.appName;
  6. bv = Math.round(parseFloat(navigator.appVersion)*100);
  7. if (bn == "Netscape") {
  8.  if (bv >= 300) jsv = "1.1";
  9.  if (bv >= 400) {
  10.   jsv = "1.2";
  11.   sd = screen.width+'x'+screen.height;
  12.   sc = screen.pixelDepth;
  13.  }
  14.  if (bv >= 406) jsv = "1.3";
  15. }
  16. msie_index = navigator.userAgent.indexOf("MSIE");
  17. if (msie_index != -1) bn = "MSIE";
  18. if (bn == "MSIE") {
  19.  bv_str = navigator.userAgent.substr(msie_index+5, navigator.userAgent.length);
  20.  bv = Math.round(parseFloat(bv_str)*100);
  21.  if (bv >= 400) {
  22.   jsv = "1.2";
  23.   sd = screen.width+'x'+screen.height;
  24.   sc = screen.colorDepth;
  25.  }
  26. }
  27. var t = new Date;
  28. rand = Math.random();
  29. var ez_code = "<I";
  30. ez_code += "MG border=0 width=1 height=1 src='http://www.mkm.ro/stats/easystat.cgi?acct=oxygen&js=1";
  31. ez_code += "&ref="+escape(parent.document.referrer);
  32. ez_code += "&pg="+escape(window.location.href);
  33. ez_code += "&pt="+escape(document.title);
  34. ez_code += "&tz="+t.getTimezoneOffset();
  35. ez_code += "&vh="+t.getHours();
  36. ez_code += "&ck="+ck+"&ja="+ja+"&jsv="+jsv+"&sd="+sd+"&sc="+sc+"&rand="+rand+"'>";
  37. document.write(ez_code);
  38.