Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
!! Uses Local time not server time !!
<script type="text/javascript">
<!--
function RefreshTime(hm){
if (hm){
this.hm=hm.split(':');
}
var date=new Date();
if (!zxcReadCookie('RefreshTime')&&this.hm[0]*1==date.getHours()&&this.hm[1]*1==date.getMinutes()){
zxcCreateCookie('RefreshTime',true,.1);
window.location=window.location;
}
setTimeout(function(){ RefreshTime(); },1000*60)
}
function zxcCreateCookie(nme,v,days){
document.cookie=nme+'='+v+';expires='+(new Date(new Date().getTime()+days*86400000).toGMTString())+';path=/';
}
function zxcReadCookie(nme){
nme+='=';
var split = document.cookie.split(';');
for(var z0=0;z0<split.length;z0++){
var s=split[z0];
while (s.charAt(0)==' ') s=s.substring(1,s.length);
if (s.indexOf(nme)==0) return s.substring(nme.length,s.length);
}
return null;
}
RefreshTime('13:07');
//-->
</script></body>
</html>
Bookmarks