国内精品福利在线视频-国内黄色一级精品-国内国语一级毛片在线视频-国内夫妇精品对白在线播放-日本青青草视频-日本强在线播放一区

全球時(shí)間顯示

演示:


當(dāng)前的地區(qū)


腳本說明:
第一步:把如下代碼加入<body>區(qū)域中
<script language="JavaScript">
<!-- Begin
var timerRunning = false;var timezone = "格林尼治標(biāo)準(zhǔn)時(shí)間";var adjust = 0;
function timeCheck(tzone, diff) {if (timerRunning) {clearTimeout(updatetime);
timerRunning = false; }gmtOffset=eval(diff+adjust);
timezone = tzone;checkDateTime();}
function checkDateTime () {var today = new Date();var year = today.getYear() + 00;var month = today.getMonth()+1;var date = today.getDate();
var day = today.getDay();var hour = today.getHours();var minute = today.getMinutes();var second = today.getSeconds();var lastSat = date - (day+1);
while (lastSat < 32) lastSat+=7;if (lastSat > 31) lastSat+=-7;var firstSat = date - (day+1);
while (firstSat > 0) firstSat+=-7;if (firstSat < 1) firstSat+=7;if ((((month == 4) && (date >= firstSat)) || month > 4) &&
(month < 11 || ((month == 10) && day <= lastSat))) adjust += 60;
yourOffset = (new Date()).getTimezoneOffset();yourOffset = yourOffset + adjust;
var xx = navigator.appName
var xy = navigator.appVersion;xy = xy.substring(0,1);
if ((xy == 4) && (xx == "Netscape")) yourOffset = yourOffset+adjust;
if ((((month == 4) && (date > 20)) || month > 4) && (month < 11 || ((month == 10) &&
day < 30))) adjust -= 60;
ourDifference = eval(gmtOffset - yourOffset);
var half = eval(ourDifference % 60);
ourDifference = Math.round(ourDifference / 60);
hour = eval(hour - ourDifference);
var m = new Array("","1","2","3","4","5","6","7","8","9","10","11","12");
var leap = eval(year % 4);
if ((half == -30) || (half == 30)) minute += 30;if (minute > 59) minute -= 60, hour++;
if (minute < 0) minute += 60, hour--;if (hour > 23) hour -= 24, date += 1;if (((month == 4) || (month == 6) ||
(month == 9) || (month == 11)) && (date==31)) date = 1, month ++;
if (((month == 2) && (date > 28)) && (leap != 0)) date = 1, month ++;
if ((month == 2) && (date > 29)) date = 1, month++;if (hour < 0) hour += 24, date --;
if ((date == 32) && (month == 12)) month = m[1], date = 1, year++;if (date == 32) date = 1, month++;
if ((date < 1) && (month == 1)) month= m[12], date = 31, year--;if (date < 1) date = 31, month --;if (((month == 4) || (month == 6) ||
(month== 9) || (month == 11)) && (date == 31)) date = 30;
if ((month == 2) && (date > 28)) date = 29;if (((month == 2) && (date > 28)) && (leap != 0)) date=28;
for (i=1; i<13; i++) {if (month == i) {month = m[i]; break;}}var dateTime = hour;
dateTime = ((dateTime < 10) ? "0":"") + dateTime;dateTime = " " + dateTime;
dateTime += ((minute < 10) ? ":0" : ":") + minute;dateTime += ((second < 10) ? ":0" : ":") + second;
dateTime += (hour >= 12) ? "下午, " : "上午, ";dateTime += year + "年" + month + "月" + date + "日" ;
document.clock.zonetime.value = dateTime;document.clock.zonename.value = timezone;updatetime=setTimeout("checkDateTime()", 900);timerRunning = true;}
// End -->
</script>

<br><form name="clock">
<input type="text" name="zonetime" size="28">
<br><br>
<b>當(dāng)前的地區(qū)</b><br>
<input type="text" name="zonename" size="21">
<br><br>
<table border="1" cellpadding="5">
<tr>
<td align="center">
<input type="button" value="太平洋" onClick="timeCheck(this.value, +480)" name="button"></td>
<td align="center">
<input type="button" value="中心" onClick="timeCheck(this.value, +420)" name="button"></td>
<td align="center">
<input type="button" value="東方" onClick="timeCheck(this.value, +300)" name="button"></td></tr>
<tr><td align="center">
<input type="button" value="夏威夷" onClick="timeCheck(this.value, +600)" name="button"></td>
<td align="center">
<input type="button" value="墨西哥" onClick="timeCheck(this.value, +360)" name="button"></td>
<td align="center">
<input type="button" value="新德里" onClick="timeCheck(this.value, -330)" name="button"></td></tr>
<tr><td align="center">
<input type="button" value="北京" onClick="timeCheck(this.value, -420)" name="button"></td>
<td align="center">
<input type="button" value="東京" onClick="timeCheck(this.value, -540)" name="button"></td>
<td align="center">
<input type="button" value="倫敦" onClick="timeCheck(this.value, +0)" name="button">
</td></tr></table>
</form>

第二步:把<body>區(qū)域改為
<body bgcolor="#ffffff" OnLoad="timeCheck(timezone, 0)">


 



Tags: ,山西晉城網(wǎng)站建設(shè),晉城在線網(wǎng)頁學(xué)習(xí),晉城企業(yè)智能建站
主站蜘蛛池模板: 日韩欧美综合视频| 国产欧美在线观看视频| 国产免费三a在线| 亚洲图片在线观看| 国产成人精品一区二三区 | 久久久久9999| 草逼电影| 精品三级在线观看| 亚洲国产综合专区在线电影| 伊人黄| 国产成人精品一区二区三区…| 国产每日更新| 高清精品一区二区三区一区| 国产欧美日韩综合精品一区二区| 国产91久久精品一区二区| 国产精品成人久久久久| 国产区在线免费观看| 伊人久久中文字幕久久cm| 情侣国产在线| 99精品国产成人一区二区| 欧美日本韩国一区二区| 国产 日韩 在线| 欧美在线看欧美视频免费网站| 日韩欧美在线综合| 一级毛片一级毛片| 欧美精品首页| 欧美瑟图| 亚洲欧美日韩国产色另类| 国产亚洲一区二区三区| 日韩国产欧美视频| 99精品久久99久久久久| h片在线播放| 欧美人一级淫片a免费播放| 国产精品久久久久久永久牛牛| 国产精品久久久久影院| 久久伊人免费| 欧美极品第一页| 一区二区三区不卡视频| 天堂一区二区三区精品| 一区二区三区网站| 亚欧在线观看|