Может не в тему, есть такой счетчик с обратным отсчетом до НГ
Код:
<table height=5 border=0 cellspacing=1 cellpadding=1><tr><td></table>
<table class=mn width=100% border=0 cellspacing=1 cellpadding=2>
<tr><td>
<table width=100% border=0 cellspacing=0 cellpadding=3 class=mn2>
<tr><td>
<table width=100% border=0 cellspacing=1 cellpadding=1>
<tr><td><div id='ngx1' align=center></div>
<script Language="javascript">
var timeStr, dateStr, ostStr, x;
function clock() {
now= new Date();
ex = new Date(2010,0,1,0,0,0);
hours= now.getHours();
minutes= now.getMinutes();
seconds= now.getSeconds();
timeStr= "" + hours;
timeStr+= ((minutes < 10) ? ":0" : ":") + minutes;
date= now.getDate();
month= now.getMonth()+1;
year= now.getYear();
dateStr= "" + date;
dateStr+= ((month < 10) ? "/0" : "/") + month;
dateStr+= "/" + year;
ostStr= "";
x = y = (ex.getTime() - now.getTime())/1000;
s_ch = Math.floor(x/60/60);
ostStr = ((s_ch < 10) ? "0" : "") + s_ch + ' час. ';
s_min = Math.floor((x/60/60 - Math.floor(x/60/60))*60);
ostStr = ostStr + ((s_min < 10) ? "0" : "") + s_min + ' мин. ';
x = (((x/60/60 - Math.floor(x/60/60))*60) - Math.floor((x/60/60 - Math.floor(x/60/60))*60))*60;
s_sec = Math.floor(x);
ostStr = ostStr + ((s_sec < 10) ? "0" : "") + s_sec + ' сек. ';
if(y >= 0) {
document.getElementById('ngx1').innerHTML = '<b>ДО НОВОГО ГОДА ОСТАЛОСЬ<br>' + ostStr;
Timer= setTimeout("clock()",500);
} else { document.getElementById('ngx1').innerHTML = '<b>ПОЗДРАВЛЯЕМ ВАС<br>С НОВЫМ 2010 ГОДОМ'; }
}
clock();
</script>
</table>
</table></table>