time.asp
来自「漂亮的企业网站系统v11 1、整体修改了上一版的一些BUG。 2、修改了」· ASP 代码 · 共 379 行
ASP
379 行
<!-- #include file="include/config_user.asp" -->
<!-- #include file="include/jk_ubb.asp" -->
<!-- #include file="include/conn.asp" -->
<%
tit="时间查询"
index_url="games"
tit_fir=format_menu(index_url)
call web_head(0,0,0,0,0)
if login_mode="" then
set rs=nothing
call close_conn()
response.redirect "login.asp"
response.end
end if
%>
<HTML><HEAD><TITLE>世界时间表</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META
content="21cn, news, finance, it, computer, service, travel, chat, stock, bank, photo, albums, mail, email, e-mail, life, fashion, Guangzhou, China"
name=Keywords>
<META
content="Enjoy great E-mail service, get professional finance advice, travel all over the world, live a fashionable life, using customize albums, etc; 最佳电子邮件,专业财经意见,时尚生活信息,旅游指南,科技和电脑信息,自定义网络影集。"
name=Description>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE type=text/css>.weding {
FONT-FAMILY: "Webdings"; FONT-SIZE: 7pt
}
._form {
FONT-SIZE: 14px; MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
</STYLE>
<SCRIPT language=JavaScript>
//Stock Query.
function callpage(htmlurl,theform) {
var newhtmlurl
newhtmlurl = htmlurl + "?STYLE=SSQX&STKNO=" + theform.STKNO.value + "&MT=GET"
var newwin=window.open(newhtmlurl,"stockWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=605,height=500");
return false;
}
</SCRIPT>
<SCRIPT language=JavaScript>
<!--
var timerID = null;
var timerRunning = false;
var _area = 0;
function stopclock(){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function startclock(){
stopclock();
showlocaltime();
}
function showlocaltime(){
var now = new Date();
var _day = new Array(7);
_day[0]='日';
_day[1]='一';
_day[2]='二';
_day[3]='三';
_day[4]='四';
_day[5]='五';
_day[6]='六';
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var timezone= now.getTimezoneOffset()/60;
if (timezone == 0)
{ var timeValue = "格林尼治";}
else
{ var timeValue = ((timezone < 0)? " 东"+(-1)*timezone : " 西"+timezone) +'区';}
timeValue += '时间:'
+'2000'+'年'
+eval(now.getMonth()+1)+'月'
+now.getDate()+'日 星期'
+_day[now.getDay()]+' '+hours;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds+" ";
document.clock.face.value = timeValue ;
timerID = setTimeout("showlocaltime()",1000);
timerRunning = true;
}
function showareatime(_area)
{
var now = new Date();
var timezone = now.getTimezoneOffset()/60;
if (_area != Math.round(_area))
{
_area = Math.floor(_area);
var minutes = now.getMinutes()+30;
if (minutes >=60)
{
minutes = minutes%60;
var hours = now.getHours()+eval(timezone+_area + 1);
}
else
{
var hours = now.getHours()+eval(timezone+_area) ;
}
}
else
{
var hours = now.getHours()+timezone+_area;
var minutes = now.getMinutes();
}
if (hours < 0)
hours = '昨天'+ eval(24 + hours);
else
if (hours < 24 )
hours = '今天'+hours;
else
hours = '明天'+hours%24;
var seconds = now.getSeconds();
var timeValue = hours;
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds+" ";
return timeValue;
}
function worldtime(_area)
{
_address = new Array(28);
_address[0]='西12区:埃尼威托克岛,夸贾林岛';
_address[1]='西11区:中途岛,东萨摩亚';
_address[2]='西10区:夏威夷';
_address[3]='西9区:阿拉斯加';
_address[4]='西8区:太平洋时间(美国和加拿大),蒂华纳';
_address[5]='西7区:山地时间(美国和加拿大),亚利桑那';
_address[6]='西6区:中部时间(美国和加拿大),墨西哥城,特古西加尔巴,萨斯喀彻温省';
_address[7]='西5区:东部时间(美国和加拿大),印第安那州(东部),波哥大,利马,基多';
_address[8]='西4区:大西洋时间(加拿大),加拉加斯,拉巴斯';
_address[9]='西3区:巴西利亚,布宜诺斯艾利斯,乔治敦';
_address[10]='西2区:中大西洋';
_address[11]='西1区:亚速尔群岛,佛得角群岛';
_address[12]='格林尼治平均时:伦敦,都柏林,爱丁堡,里斯本,卡萨布兰卡,蒙罗维亚';
_address[13]='东1区:阿姆斯特丹,柏林,伯尔尼,罗马,斯德哥尔摩,维也纳,贝尔格莱德,布拉迪斯拉发,布达佩斯,卢布尔雅那,布拉格,布鲁赛尔,哥本哈根,马德里,巴黎,萨拉热窝,斯科普里,索非亚,华沙,萨格勒布';
_address[14]='东2区:布加勒斯特,哈拉雷,比勒陀尼亚,赫尔辛基,里加,塔林,开罗,雅典,伊斯坦布尔,明斯克,以色列';
_address[15]='东3区:巴格达,科威特,利雅得,莫斯科,圣彼得堡,伏尔加格勒,内罗毕';
_address[16]='东4区:阿布扎比,马斯喀特,巴库,第比利斯';
_address[17]='东5区:叶卡特琳堡,伊斯兰堡,卡拉奇,塔什干';
_address[18]='东6区:阿拉木图,达卡,科伦坡';
_address[19]='东7区:曼谷,河内,雅加达';
_address[20]='东8区:北京,重庆,广州,上海,香港,乌鲁木齐,台北,新加坡,佩思';
_address[21]='东9区:平壤,汉城,东京,大阪,札幌,雅库茨克';
_address[22]='东10区:布里斯班,关岛,莫尔兹比港,霍巴特,堪培拉,墨尔本,悉尼';
_address[23]='东11区:马加丹,所罗门群岛,新喀里多尼亚';
_address[24]='东12区:奥克兰,惠灵顿,斐济,堪察加半岛,马绍尔群岛';
_address[25]='西3:30区:纽芬兰';
_address[26]='东3:30区:德黑兰';
_address[27]='东4:30区:喀布尔';
_address[28]='东5:30区:孟买,加尔各答,马德拉斯,新德里';
_address[29]='东9:30区:阿得莱德,达尔文';
if (_area == -3.5) alert(showareatime(_area)+_address[25]);
if (_area == 3.5) alert(showareatime(_area)+_address[26]);
if (_area == 4.5) alert(showareatime(_area)+_address[27]);
if (_area == 5.5) alert(showareatime(_area)+_address[28]);
if (_area == 9.5) alert(showareatime(_area)+_address[29]);
if (_area == Math.round(_area))
{alert(showareatime(_area)+_address[eval(_area+12)]);
}
}
//-->
</SCRIPT>
<link rel="stylesheet" href="images/joekoe.css" type="text/css">
</HEAD>
<BODY bgColor=#e0e0e0 leftMargin=0 onload=startclock(); onunload=stopclock();
topMargin=0 marginheight="0" marginwidth="0">
<DIV align=center>
<DIV align=center> </DIV>
<FORM class=_form method=post name=clock>
<TABLE border=0 width="100%">
<TBODY>
<TR>
<TD width="92%">
<INPUT name=face size=42 style="FONT-SIZE: 14px">
<FONT size=2>点击后即可得到相应城市时间......</FONT> </TD>
<TD width="8%"> </TD>
</TR>
</TBODY>
</TABLE>
</FORM>
<img border=0 height=376
src="images/world.gif" usemap=#Map width=778><font color=#000080>
<map name=Map>
<area
coords=383,84,437,117 onClick=worldtime(12); shape=RECT>
<area
coords=366,14,406,82 onClick=worldtime(11); shape=RECT>
<area
coords=334,20,367,132 onClick=worldtime(10); shape=RECT>
<area
coords=300,80,333,132 onClick=worldtime(9); shape=RECT>
<area
coords=287,4,332,79 onClick=worldtime(9); shape=RECT>
<area
coords=101,31,95,75,108,75,109,32 onClick=worldtime(2); shape=POLY>
<area
coords=71,105,61,27,103,27,94,105 onClick=worldtime(1); shape=POLY>
<area
coords=336,227,355,279 onClick=worldtime(9); shape=RECT>
<area
coords=312,244,335,283 onClick=worldtime(8); shape=RECT>
<area
coords=398,251,447,328 onClick=worldtime(11); shape=RECT>
<area
coords=409,12,465,54,410,88 onClick=worldtime(12); shape=POLY>
<area
coords=415,341,450,364 onClick=worldtime(12); shape=RECT>
<area
coords=363,332,398,355 onClick=worldtime(10); shape=RECT>
<area
coords=329,281,355,358 onClick=worldtime(9.5); shape=RECT>
<area
coords=308,133,367,169 onClick=worldtime(9); shape=RECT>
<area
coords=292,291,328,360 onClick=worldtime(8); shape=RECT>
<area
coords=282,187,345,227 onClick=worldtime(8); shape=RECT>
<area
coords=252,168,330,187 onClick=worldtime(8); shape=RECT>
<area
coords=223,3,284,78 onClick=worldtime(7); shape=RECT>
<area
coords=226,127,310,167 onClick=worldtime(8); shape=RECT>
<area
coords=259,241,312,260 onClick=worldtime(8); shape=RECT>
<area
coords=260,262,310,286 onClick=worldtime(7); shape=RECT>
<area
coords=275,226,324,242 onClick=worldtime(7); shape=RECT>
<area
coords=243,208,283,225 onClick=worldtime(7); shape=RECT>
<area
coords=201,169,252,184 onClick=worldtime(6); shape=RECT>
<area
coords=240,186,272,207 onClick=worldtime(6); shape=RECT>
<area
coords=200,232,252,252 onClick=worldtime(6); shape=RECT>
<area
coords=193,183,241,230 onClick=worldtime(5.5); shape=RECT>
<area
coords=160,173,191,191 onClick=worldtime(5); shape=RECT>
<area
coords=165,154,220,169 onClick=worldtime(5); shape=RECT>
<area
coords=177,138,220,154 onClick=worldtime(4.5); shape=RECT>
<area
coords=165,133,176,154 onClick=worldtime(4); shape=RECT>
<area
coords=125,160,167,172 onClick=worldtime(3.5); shape=RECT>
<area
coords=162,3,220,32 onClick=worldtime(5); shape=RECT>
<area
coords=179,33,222,137 onClick=worldtime(5); shape=RECT>
<area
coords=111,57,175,76 onClick=worldtime(3); shape=RECT>
<area
coords=140,78,176,92 onClick=worldtime(3); shape=RECT>
<area
coords=143,190,185,194,218,317,158,342,147,313 onClick=worldtime(3);
shape=POLY>
<area coords=123,171,159,185 onClick=worldtime(3);
shape=RECT>
<area coords=642,304,694,335 onClick=worldtime(-4);
shape=RECT>
<area coords=62,219,108,285 onClick=worldtime(1);
shape=RECT>
<area coords=47,157,98,179 onClick=worldtime(1);
shape=RECT>
<area coords=77,297,111,361 onClick=worldtime(2);
shape=RECT>
<area coords=112,292,143,363 onClick=worldtime(2);
shape=RECT>
<area coords=99,161,123,192 onClick=worldtime(2);
shape=RECT>
<area coords=97,133,164,160 onClick=worldtime(2);
shape=RECT>
<area coords=97,77,137,134 onClick=worldtime(2);
shape=RECT>
<area coords=39,106,98,157 onClick=worldtime(1);
shape=RECT>
<area coords=15,178,82,193 onClick=worldtime(0);
shape=RECT>
<area coords=55,242,54,201,54,195,15,193,13,245
onClick=worldtime(0); shape=POLY>
<area
coords=42,50,70,91,69,106,4,108,5,83 onClick=worldtime(0);
shape=POLY>
<area coords=765,152,18 onClick=worldtime(-3.5);
shape=CIRCLE>
<area coords=689,291,772,355 onClick=worldtime(-3);
shape=RECT>
<area coords=438,5,469,5,467,50 onClick=worldtime(-12);
shape=POLY>
<area coords=467,62,459,165,437,136,445,78
onClick=worldtime(-12); shape=POLY>
<area
coords=439,155,442,254,421,233,421,155 onClick=worldtime(-12);
shape=POLY>
<area coords=472,5,499,5,499,23,472,33
onClick=worldtime(-11); shape=POLY>
<area
coords=467,111,486,110,486,175,464,174 onClick=worldtime(-11);
shape=POLY>
<area coords=450,200,473,204,472,248,449,244
onClick=worldtime(-11); shape=POLY>
<area
coords=448,304,469,304,470,367,456,343,446,340 onClick=worldtime(-11);
shape=POLY>
<area coords=444,171,504,182,506,211,444,195
onClick=worldtime(-10); shape=POLY>
<area coords=476,209,503,369
onClick=worldtime(-10); shape=RECT>
<area coords=489,101,504,177
onClick=worldtime(-10); shape=RECT>
<area
coords=499,26,470,41,469,101,505,93 onClick=worldtime(-9);
shape=POLY>
<area coords=503,5,531,35 onClick=worldtime(-9);
shape=RECT>
<area coords=507,83,530,369 onClick=worldtime(-9);
shape=RECT>
<area coords=505,37,575,77 onClick=worldtime(-8);
shape=RECT>
<area coords=533,3,558,32 onClick=worldtime(-8);
shape=RECT>
<area coords=531,108,576,104,598,197,580,173,531,197
onClick=worldtime(-8); shape=POLY>
<area coords=533,198,574,302
onClick=worldtime(-8); shape=RECT>
<area coords=532,330,568,367
onClick=worldtime(-8); shape=RECT>
<area coords=578,6,601,104
onClick=worldtime(-7); shape=RECT>
<area
coords=581,109,619,137,620,155,589,158 onClick=worldtime(-7);
shape=POLY>
<area coords=604,2,648,129 onClick=worldtime(-6);
shape=RECT>
<area coords=622,132,622,159,646,160,645,131
onClick=worldtime(-6); shape=POLY>
<area
coords=649,162,648,169,599,171,602,160 onClick=worldtime(-6);
shape=POLY>
<area coords=646,174,646,229,600,229,599,189,614,172
onClick=worldtime(-6); shape=POLY>
<area coords=531,303,572,329
onClick=worldtime(-6); shape=RECT>
<area coords=649,3,697,291
onClick=worldtime(-5); shape=RECT>
<area coords=698,66,722,168
onClick=worldtime(-4); shape=RECT>
<area coords=698,236,721,291
onClick=worldtime(-6); shape=RECT>
<area coords=698,4,731,81,771,40,770,7
onClick=worldtime(-3); shape=POLY>
<area
coords=723,240,723,291,767,295,755,243 onClick=worldtime(-3);
shape=POLY>
</map>
</font> </DIV>
</BODY></HTML>
<%call web_end(0)%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?