<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY><BODY onLoad="run(); timerONE=window.setTimeout"></BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide
timeID = null;
timeRunning = false;
function stop () {
if(timeRunning)
clearTimeout(timeID);
timeRunning = false;
}
function time () {
var tick,d,t;
tick = new Date();
hours = tick.getHours();
minutes = tick.getMinutes();
seconds = tick.getSeconds();
day = tick.getDay();
month = tick.getMonth()+1;
date = tick.getDate();
year = tick.getYear();
current = year+"年"
current += month+"月"
current += date +"日 "
window.status=current;
timeID = setTimeout("time()",1000);
timeRunning = true;
}
function run(){
stop();
time();
}//-->
</SCRIPT></BODY>
</HTML>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
</HEAD>
<BODY><BODY onLoad="run(); timerONE=window.setTimeout"></BODY>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide
timeID = null;
timeRunning = false;
function stop () {
if(timeRunning)
clearTimeout(timeID);
timeRunning = false;
}
function time () {
var tick,d,t;
tick = new Date();
hours = tick.getHours();
minutes = tick.getMinutes();
seconds = tick.getSeconds();
day = tick.getDay();
month = tick.getMonth()+1;
date = tick.getDate();
year = tick.getYear();
current = year+"年"
current += month+"月"
current += date +"日 "
window.status=current;
timeID = setTimeout("time()",1000);
timeRunning = true;
}
function run(){
stop();
time();
}//-->
</SCRIPT></BODY>
</HTML>
请参阅
Date 对象的方法 | getUTCDay 方法应用于: Date 对象
要求
版本 1
返回 Date 对象中用本地时间表示的一周中的日期值。dateObj.getDay()
必选项 dateObj 参数为 Date 对象。说明
要获取用全球标准时间 (UTC) 表示的一周中日期值,请使用 getUTCDay 方法。getDay 方法所返回的值是一个处于 0 到 6 之间的整数,它代表了一周中的某一天,返回值与一周中日期的对应关系如下: 值 星期
0 星期天
1 星期一
2 星期二
3 星期三
4 星期四
5 星期五
6 星期六
请参阅
Date 对象的方法 | getUTCDate 方法 | setDate 方法 | setUTCDate 方法应用于: Date 对象
要求
版本 1
返回 Date 对象中用本地时间表示的一个月中的日期值。