home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September / Chip_2004-09_cd1.bin / chplus / navrcholu / navrcholu_soubory / code < prev    next >
Text File  |  2004-08-01  |  1KB  |  36 lines

  1. function nvc(){
  2. var n=navigator;
  3. var p=document;
  4. var c,t,b,j,m,r,y;
  5. var d,x,w;
  6. d=x=w=0;
  7. b=(n.appName=="Netscape" && parseInt(n.appVersion)==4)?"border=\"0\"":"style=\"border:none\"";
  8. if(n.appVersion.indexOf("MSIE")>=0 && n.appVersion.indexOf("Win")>=0){
  9. p.writeln("<s"+"cript language=\"VBScript\">\non error resume next");
  10. for (i=3; i<7; i++)
  11. p.writeln("if(IsNull(CreateObject(\"ShockwaveFlash.ShockwaveFlash."+i+"\"))) then n3f8q=0 else n3f8q="+i+" end if");
  12. p.writeln("</s"+"cript>"); } else eval("var n3f8q=0");
  13. if(n.plugins && n.plugins["Shockwave Flash"]){
  14. t=n.plugins["Shockwave Flash"].description;
  15. n3f8q=parseInt(t.charAt(t.indexOf(".")-1)); }
  16. m=(n.userAgent.substring(0,8)=="Mozilla/")?n.userAgent.substring(8,9):4;
  17. if(m>2)
  18. j=(n.javaEnabled())?1:0;
  19. r=window.top.document.referrer;
  20. if(m>3 && screen){
  21. d=screen.colorDepth;
  22. if(d==0)
  23. d=screen.pixelDepth;
  24. x=screen.width;
  25. w=(p.all)?top.document.body.clientWidth:top.innerWidth; }
  26. y=new Date();
  27. y.setTime(y.getTime()-31536000000);
  28. p.cookie="nvt=1";
  29. c=(p.cookie.indexOf("nvt") != -1)?1:0;
  30. p.cookie="nvt=1; expires="+y.toGMTString();
  31. p.write("<a href=\"http://navrcholu.cz/Statistika/12/\"><img src=\"http://c1.navrcholu.cz/hit?site=12;t=t1x1;"
  32. +"fv="+n3f8q+";js="+j+";cs="+c+";ref="+escape(r)+";cd="
  33. +d+";sx="+x+";wx="+w+";jss=1;r="+Math.random()
  34. +"\" width=\"1\" height=\"1\" alt=\"\" "+b+" /></a>"); }
  35. nvc();
  36.