<
script language
=
"
javascript
"
type
=
"
text/javascript
"
>
setInterval( " jstimer.innerHTML=DisplayDate(); " , 1000 );
function DisplayDate()
{
var d,x,minus,second,s = "" ;
x = new Array( " 星期日 " , " 星期一 " , " 星期二 " );
x = x.concat( " 星期三 " , " 星期四 " , " 星期五 " );
x = x.concat( " 星期六 " );
d = new Date();
s += d.getYear() + " 年 " ;
s += (d.getMonth() + 1 ) + " 月 " ;
s += d.getDate() + " 日 " ;
s += x[d.getDay()] + " " ;
s += d.getHours() + " : " ;
minus = d.getMinutes();
second = d.getSeconds();
if (minus < 10 )
{minus = " 0 " + minus;}
if (second < 10 ) { second = " 0 " + second;}
s += minus + " : " + second;
return (s);
}
</ script >
setInterval( " jstimer.innerHTML=DisplayDate(); " , 1000 );
function DisplayDate()
{
var d,x,minus,second,s = "" ;
x = new Array( " 星期日 " , " 星期一 " , " 星期二 " );
x = x.concat( " 星期三 " , " 星期四 " , " 星期五 " );
x = x.concat( " 星期六 " );
d = new Date();
s += d.getYear() + " 年 " ;
s += (d.getMonth() + 1 ) + " 月 " ;
s += d.getDate() + " 日 " ;
s += x[d.getDay()] + " " ;
s += d.getHours() + " : " ;
minus = d.getMinutes();
second = d.getSeconds();
if (minus < 10 )
{minus = " 0 " + minus;}
if (second < 10 ) { second = " 0 " + second;}
s += minus + " : " + second;
return (s);
}
</ script >
<
form
id
="form1"
runat
="server"
>
< td style ="width:220px" >
< div id ="jstimer" runat ="server" ></ div >
</ td >
</ form >
< td style ="width:220px" >
< div id ="jstimer" runat ="server" ></ div >
</ td >
</ form >