This is on marfilaster wvm 3.1, the time.js file.
I forgot who make this time.js but i think it calculate the GMT for viewers from milisec to seconds.
It also triger record update on visitor visit count.
[quote][b]time.js[/b]
if (!attachOnLoadHandler(function(){ch()})) window.onload = function(){ch()};
function attachOnLoadHandler(func)
{
if(window.attachEvent)
{
window.attachEvent('onload',func);
return true;
}
if(window.addEventListener)
{
window.addEventListener('load',func,false);
return true;
}
return false;
}
function invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
function ch() {
var d= new Date();
var sec=invert(d.getTimezoneOffset()*60);
var hour=invert(d.getTimezoneOffset()/60);
x=document.getElementsByName("lnk");
for(var y=0;y<x.length;y++) {
var myregexp = /\?/;
if(x[y].getAttribute("href").match(myregexp)) x[y].setAttribute("href",x[y].getAttribute("href")+"&oss="+sec+"&osh="+hour);
else x[y].setAttribute("href",x[y].getAttribute("href")+"?oss="+sec+"&osh="+hour);
}
}[/quote]
Oh and i've seen your profile, but my name not recorded at your WVM.
Last edited by D' Angelo (2008-01-22 03:53:11)