1function timeClock()
2{
3 setTimeout("timeClock()", 1000);
4 now = new Date();
5 alert(now);
6 f_date = now.getDate()+" "+strMonth(now.getMonth())+" "+now.getFullYear()+" / "+timeFormat(now.getHours(), now.getMinutes());
7 return f_date;
8}
9
10<span class="foo"><script type="text/javascript">document.write(timeClock());</script></span>
11