📄 worldtime.asp
字号:
<td width="78" align="center"> <input type="text" size="8" name="atl">
</td>
<td width="68" align="center"> <input type="text" size="8" name="bra">
</td>
<td width="82" align="center"> <input type="text" size="8" name="mid">
</td>
</tr>
<tr bgcolor="#A1BBE0">
<td width="65" height="20" align="center"> 伦敦 </td>
<td width="72" align="center"> 柏林 </td>
<td width="81" align="center"> 开罗 </td>
<td width="103" align="center"> 莫斯科 </td>
<td width="97" align="center"> 新德里 </td>
<td width="94" align="center"> 曼谷 </td>
<td width="78" align="center"> 香港 </td>
<td width="68" align="center"> 东京 </td>
<td width="82" align="center"> 悉尼 </td>
</tr>
<tr>
<td width="65" align="center"> GMT </td>
<td width="72" align="center"> GMT +1 </td>
<td width="81" align="center"> GMT +2 </td>
<td width="103" align="center"> GMT +3 </td>
<td width="97" align="center"> GMT +5 </td>
<td width="94" align="center"> GMT +7 </td>
<td width="78" align="center"> GMT +8 </td>
<td width="68" align="center"> GMT +9 </td>
<td width="82" align="center"> GMT +10 </td>
</tr>
<tr>
<td width="65" align="center"> <input type="text" size="8" name="_GMT"> </td>
<td width="72" align="center"> <input type="text" size="8" name="rome"> </td>
<td width="81" align="center"> <input type="text" size="8" name="Israel"> </td>
<td width="103" align="center"> <input type="text" size="8" name="msw"> </td>
<td width="97" align="center"> <input type="text" size="8" name="del"> </td>
<td width="94" align="center"> <input type="text" size="8" name="kok"> </td>
<td width="78" align="center"> <input type="text" size="8" name="ho"> </td>
<td width="68" align="center"> <input type="text" size="8" name="tky"> </td>
<td width="82" align="center"> <input type="text" size="8" name="sdn"> </td>
</tr></form>
</table></TD>
</TR>
</TABLE></TD></TR>
<TR>
<TD align=middle><FONT color=#000080><MAP name=Map><AREA
onclick=worldtime(12); shape=RECT coords=380,84,433,117><AREA
onclick=worldtime(11); shape=RECT coords=361,14,401,82><AREA
onclick=worldtime(10); shape=RECT coords=330,20,362,132><AREA
onclick=worldtime(9); shape=RECT coords=296,80,329,132><AREA
onclick=worldtime(9); shape=RECT coords=283,4,328,79><AREA
onclick=worldtime(2); shape=POLY coords=99,31,93,75,106,75,107,32><AREA
onclick=worldtime(1); shape=POLY coords=69,105,59,27,101,27,92,105><AREA
onclick=worldtime(9); shape=RECT coords=332,227,350,279><AREA
onclick=worldtime(8); shape=RECT coords=308,244,331,283><AREA
onclick=worldtime(11); shape=RECT coords=393,251,441,328><AREA
onclick=worldtime(12); shape=POLY coords=404,12,459,54,405,88><AREA
onclick=worldtime(12); shape=RECT coords=395,341,449,390><AREA
onclick=worldtime(10); shape=RECT coords=350,251,392,377><AREA
onclick=worldtime(9.5); shape=RECT coords=325,281,350,358><AREA
onclick=worldtime(9); shape=RECT coords=303,133,362,169><AREA
onclick=worldtime(8); shape=RECT coords=288,291,324,360><AREA
onclick=worldtime(8); shape=RECT coords=278,187,341,227><AREA
onclick=worldtime(8); shape=RECT coords=249,168,326,187><AREA
onclick=worldtime(7); shape=RECT coords=219,3,280,78><AREA
onclick=worldtime(8); shape=RECT coords=219,80,302,168><AREA
onclick=worldtime(8); shape=RECT coords=256,241,308,260><AREA
onclick=worldtime(7); shape=RECT coords=256,262,305,286><AREA
onclick=worldtime(7); shape=RECT coords=271,226,320,242><AREA
onclick=worldtime(7); shape=RECT coords=240,208,279,225><AREA
onclick=worldtime(6); shape=RECT coords=198,169,249,184><AREA
onclick=worldtime(6); shape=RECT coords=237,186,268,207><AREA
onclick=worldtime(6); shape=RECT coords=197,232,249,252><AREA
onclick=worldtime(5.5); shape=RECT coords=190,183,238,230><AREA
onclick=worldtime(5); shape=RECT coords=158,173,188,191><AREA
onclick=worldtime(5); shape=RECT coords=163,154,216,169><AREA
onclick=worldtime(4.5); shape=RECT coords=174,138,216,154><AREA
onclick=worldtime(4); shape=RECT coords=163,133,173,154><AREA
onclick=worldtime(3.5); shape=RECT coords=123,160,165,172><AREA
onclick=worldtime(5); shape=RECT coords=160,3,216,32><AREA
onclick=worldtime(5); shape=RECT coords=177,33,219,137><AREA
onclick=worldtime(3); shape=RECT coords=111,36,172,76><AREA
onclick=worldtime(3); shape=RECT coords=137,78,176,132><AREA
onclick=worldtime(3); shape=POLY
coords=140,190,182,194,214,317,156,342,144,313><AREA
onclick=worldtime(3); shape=RECT coords=121,171,157,185><AREA
onclick=worldtime(-4); shape=RECT coords=641,293,684,374><AREA
onclick=worldtime(1); shape=RECT coords=55,193,109,294><AREA
onclick=worldtime(1); shape=RECT coords=45,157,96,179><AREA
onclick=worldtime(2); shape=RECT coords=55,296,109,361><AREA
onclick=worldtime(2); shape=RECT coords=110,196,140,363><AREA
onclick=worldtime(2); shape=RECT coords=97,161,121,192><AREA
onclick=worldtime(2); shape=RECT coords=95,133,162,160><AREA
onclick=worldtime(2); shape=RECT coords=95,77,134,134><AREA
onclick=worldtime(1); shape=RECT coords=38,106,96,157><AREA
onclick=worldtime(0); shape=RECT coords=14,178,81,193><AREA
onclick=worldtime(0); shape=POLY
coords=53,242,52,201,52,195,14,193,12,245><AREA onclick=worldtime(0);
shape=POLY coords=41,50,68,91,67,106,3,108,4,83><AREA
onclick=worldtime(-3.5); shape=CIRCLE coords=755,151,17><AREA
onclick=worldtime(-3); shape=RECT coords=684,291,763,372><AREA
onclick=worldtime(-12); shape=POLY coords=432,5,464,5,461,50><AREA
onclick=worldtime(-12); shape=POLY
coords=461,62,453,165,431,136,439,78><AREA onclick=worldtime(-12);
shape=POLY coords=433,155,436,254,416,233,416,155><AREA
onclick=worldtime(-11); shape=POLY
coords=467,5,493,5,493,23,467,33><AREA onclick=worldtime(-11);
shape=POLY coords=461,111,480,110,480,175,458,174><AREA
onclick=worldtime(-11); shape=POLY
coords=444,200,468,204,467,248,443,244><AREA onclick=worldtime(-11);
shape=POLY coords=442,304,464,304,465,367,450,343,440,340><AREA
onclick=worldtime(-10); shape=POLY
coords=438,171,498,182,500,211,438,195><AREA onclick=worldtime(-10);
shape=RECT coords=470,209,497,369><AREA onclick=worldtime(-10);
shape=RECT coords=483,101,498,177><AREA onclick=worldtime(-9);
shape=POLY coords=493,26,465,41,464,101,499,93><AREA
onclick=worldtime(-9); shape=RECT coords=497,5,524,35><AREA
onclick=worldtime(-9); shape=RECT coords=501,83,523,369><AREA
onclick=worldtime(-8); shape=RECT coords=499,37,568,77><AREA
onclick=worldtime(-8); shape=RECT coords=526,3,552,32><AREA
onclick=worldtime(-8); shape=POLY
coords=522,84,565,83,591,197,577,198,524,197><AREA
onclick=worldtime(-8); shape=RECT coords=526,198,567,302><AREA
onclick=worldtime(-8); shape=RECT coords=525,330,561,367><AREA
onclick=worldtime(-7); shape=RECT coords=571,6,594,104><AREA
onclick=worldtime(-7); shape=POLY
coords=574,109,611,137,612,155,582,158><AREA onclick=worldtime(-6);
shape=RECT coords=597,2,641,129><AREA onclick=worldtime(-6); shape=POLY
coords=614,132,614,159,639,160,638,131><AREA onclick=worldtime(-6);
shape=POLY coords=641,162,641,169,592,171,595,160><AREA
onclick=worldtime(-6); shape=POLY
coords=639,174,639,229,593,229,592,189,606,172><AREA
onclick=worldtime(-6); shape=RECT coords=524,303,565,329><AREA
onclick=worldtime(-5); shape=RECT coords=641,3,688,291><AREA
onclick=worldtime(-4); shape=RECT coords=689,66,714,168><AREA
onclick=worldtime(-6); shape=RECT coords=689,236,713,291><AREA
onclick=worldtime(-3); shape=POLY coords=689,4,723,81,762,40,761,7><AREA
onclick=worldtime(-3); shape=POLY
coords=715,240,715,291,758,295,746,243></MAP></FONT>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center>
<TBODY>
<TR>
<TD><IMG class=hand height=376 src="../HXIMAGES/world_map.gif" width=778 useMap=#Map border=0></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<script language="JavaScript">
<!-- Begin
function GetTime() {
var dt = new Date();
var def = dt.getTimezoneOffset()/60;
var gmt = (dt.getHours() + def);
var ending = ":" + IfZero(dt.getMinutes()) + ":" + IfZero(dt.getSeconds());
var rome =check24(((gmt + 1) > 24) ? ((gmt + 1) - 24) : (gmt + 1));
document.clock1.rome.value = (IfZero(rome) + ending);
var isr =check24(((gmt + 2) > 24) ? ((gmt + 2) - 24) : (gmt + 2));
document.clock1.Israel.value = (IfZero(isr) + ending);
var msw =check24(((gmt + 3) > 24) ? ((gmt + 3) - 24) : (gmt + 3));
document.clock1.msw.value = (IfZero(msw) + ending);
var del =check24(((gmt + 5) > 24) ? ((gmt + 5) - 24) : (gmt + 5));
document.clock1.del.value = (IfZero(del) + ending);
var kok =check24(((gmt +7 ) > 24) ? ((gmt +7 ) - 24) : (gmt + 7));
document.clock1.kok.value = (IfZero(kok) + ending);
var ho =check24(((gmt + 8) > 24) ? ((gmt + 8) - 24) : (gmt + 8));
document.clock1.ho.value = (IfZero(ho) + ending);
var tky =check24(((gmt + 9) > 24) ? ((gmt + 9) - 24) : (gmt + 9));
document.clock1.tky.value = (IfZero(tky) + ending);
var sdn =check24(((gmt + 10) > 24) ? ((gmt + 10) - 24) : (gmt + 10));
document.clock1.sdn.value = (IfZero(sdn) + ending);
var _GMT =check24(((gmt) > 24) ? ((gmt) - 24) : (gmt));
document.clock1._GMT.value = (IfZero(_GMT) + ":" + IfZero(dt.getMinutes()) + ":" + IfZero(dt.getSeconds()));
var haw =check24(((gmt + (24-10)) > 24) ? ((gmt + (24-10)) - 24) : (gmt + (24-10)));
document.clock1.Hawaii.value = (IfZero(haw) + ending);
var ala =check24(((gmt + (24-9)) > 24) ? ((gmt + (24-9)) - 24) : (gmt + (24-9)));
document.clock1.alaska.value = (IfZero(ala) + ending);
var pacif =check24(((gmt + (24-8)) >= 24) ? ((gmt + (24-8)) - 24) : (gmt + (24-8)));
document.clock1.pacif.value = (IfZero(pacif) + ending);
var mount =check24(((gmt + (24-7)) > 24) ? ((gmt + (24-7)) - 24) : (gmt + (24-7)));
document.clock1.mount.value = (IfZero(mount) + ending);
var center =check24(((gmt + (24-6)) > 24) ? ((gmt + (24-6)) - 24) : (gmt + (24-6)));
document.clock1.center.value = (IfZero(center) + ending);
var east =check24(((gmt + (24-5)) > 24) ? ((gmt + (24-5)) - 24) : (gmt + (24-5)));
document.clock1.east.value = (IfZero(east) + ending);
var atl =check24(((gmt + (24-4)) > 24) ? ((gmt + (24-4)) - 24) : (gmt + (24-4)));
document.clock1.atl.value = (IfZero(atl) + ending);
var bra =check24(((gmt + (24-3)) > 24) ? ((gmt + (24-3)) - 24) : (gmt + (24-3)));
bra = (bra >= 24) ? bra - 24 : bra;
document.clock1.bra.value = (IfZero(bra) + ending);
var mid =check24(((gmt + (24-2)) > 24) ? ((gmt + (24-2)) - 24) : (gmt + (24-2)));
mid = (mid >= 24) ? mid - 24 : mid;
document.clock1.mid.value = (IfZero(mid) + ending);
setTimeout("GetTime()", 1000);
}
function IfZero(num) {
return ((num <= 9) ? ("0" + num) : num);
}
function check24(hour) {
return (hour >= 24) ? hour - 24 : hour;
}
javascript:GetTime();
// End -->
</script>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -