var ipaddress = '54.80.96.153'; var browser = '2.0'; var operatingsystem = ''; var countrylanguage = ''; var referer = escape(document.referrer); var screenresolution = screen.width+'x'+screen.height; var colordepth = screen.colorDepth; var url = location.href; init_counter(); function init_counter() { var clickscript = new Image(); clickscript.src = 'http://www.topukraine.com/webstats/count2.php?hit=1&u=2&title=topukraina&ipaddress='+ ipaddress +'&browser='+ browser +'&operatingsystem='+ operatingsystem +'&countrylanguage='+ countrylanguage +'&screenresolution='+ screenresolution +'&colordepth='+ colordepth +'&referer='+ referer +'&url='+ url; startclicklog(); } function startclicklog() { if (typeof document.onmousedown == 'function') { currentFunc = document.onmousedown; document.onmousedown = function(e) { catchactivity(e); return currentFunc(e); } } else { document.onmousedown = catchactivity; } } function findlink(el) { var tagName = 'A'; var parent = el.parentNode; if (el.tagName != 'IMG') var df = el.href; if (!df&&parent) { if (parent.tagName==tagName) return parent.href; else return findlink(parent); } else return df; } function catchactivity(e) { try { if (e == undefined) e = window.event; if (e.srcElement) href = findlink(e.srcElement); else href = findlink(e.target); if (href) var clickscript = new Image(); clickscript.src = 'http://www.topukraine.com/webstats/count2.php?hit=0&u=2&title=topukraina&ipaddress='+ ipaddress +'&url='+ url +'&href='+ href; var href = ''; } catch(e) { } return true; }