Code: Select all
<script language="JavaScript">
<!--
pmv_vis = 21353245;
sw = "-";
sc = "-";
c = "-";
je = 0;
js = 1;
app = "-";
app = escape(navigator.appName);
sw = screen.width;
sh = screen.height;
if(navigator.javaEnabled()) {je = 1}
if(app != "Netscape") {c=screen.colorDepth}
else {c = screen.pixelDepth}
r = "pmv_vis="+pmv_vis+"&screenw="+sw+"&screenh="+sh+"&colors="+c+"&java="+je+"&js="+js;
url = "http://localhost/counter/counter_image.php?" + r;
document.write('<img src="'+url+'" width=10 height=10 border=0 alt="counter">\n');
// -->
</script>It all works fine on my own computer and with recent browsers. But as soon as I placed this on a site I observed that this system doesn't counts the aforementioned values for 4.x browsers (the browser version is recorded by PHP). Is there a method to make it work?