home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2004 March
/
PCWorld_2004-03_cd.bin
/
Software
/
komercni
/
software602
/
pic
/
code.js
< prev
next >
Wrap
Text File
|
2004-01-22
|
2KB
|
67 lines
var nav_obj = navigator;
var js_ver = 10;
var fl_ver = 0;
var fl_desc;
var bs = "style=\"border:none\"";
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4)) {
bs = "border=\"0\"";
}
if (nav_obj.appVersion.indexOf("MSIE")>=0 && nav_obj.appVersion.indexOf("Win")>=0) {
document.writeln("<s"+"cript language=\"VBScript\">");
document.writeln("on error resume next");
for (i = 3; i < 7; i++)
document.writeln("if (IsNull(CreateObject(\"ShockwaveFlash.ShockwaveFlash." + i + "\"))) then dummy=0 else fl_ver=" + i + " end if");
document.writeln("</s"+"cript>");
}
if (nav_obj.plugins && nav_obj.plugins["Shockwave Flash"]) {
fl_desc = nav_obj.plugins["Shockwave Flash"].description;
fl_ver = parseInt(fl_desc.charAt(fl_desc.indexOf(".") - 1));
}
var java = 0;
var moz_ver = 4;
if (nav_obj.userAgent.substring(0,8) == "Mozilla/") {
moz_ver = nav_obj.userAgent.substring(8,9);
}
if (moz_ver > 2) {
if (nav_obj.javaEnabled())
java = 1;
}
var ref = window.parent.document.referrer;
var color_depth = 0;
var res_y = 0;
var res_x = 0;
var win_y = 0;
var win_x = 0;
if (moz_ver > 3 && (screen)) {
color_depth = screen.colorDepth;
if (color_depth == 0)
color_depth = screen.pixelDepth;
res_y = screen.height;
res_x = screen.width;
win_y = (document.all) ? top.document.body.clientHeight : top.innerHeight;
win_x = (document.all) ? top.document.body.clientWidth : top.innerWidth;
}
var cookie_sup;
var lastYear = new Date();
lastYear.setFullYear(lastYear.getFullYear() - 1);
document.cookie = "nvt=1";
if (document.cookie.indexOf("nvt") != -1) {
cookie_sup = 1;
} else {
cookie_sup = 0;
}
document.cookie = "nvt=1; expires=" + lastYear.toGMTString();
document.write("<a href=\"http://navrcholu.cz/Statistika/12631/\">"
+ "<img src=\"http://c1.navrcholu.cz/hit?site=12631;t=lb14;"
+ "fv=" + fl_ver + ";js=" + java + ";cs=" + cookie_sup + ";ref="
+ escape(ref) + ";cd=" + color_depth + ";sx=" + res_x
+ ";wx=" + win_x + ";jss=1;r=" + Math.random()
+ "\" width=\"14\" "
+ "height=\"14\" "
+ "alt=\"NAVRCHOLU.cz\" " + bs + " /></a>");