九色国产,午夜在线视频,新黄色网址,九九色综合,天天做夜夜做久久做狠狠,天天躁夜夜躁狠狠躁2021a,久久不卡一区二区三区

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
js 實(shí)時(shí)顯示不同時(shí)區(qū)時(shí)間
轉(zhuǎn)載 wateryi 發(fā)布于2015-08-27 14:40:16 
 document.write('<div id="WorldTime" class="toptime">'+
        '<label><img src="http://www.rttx999.com/images/q1.jpg">北京:<span id="bjdtime">14:28:16 </span></label>'+
        '<label><img src="http://www.rttx999.com/images/q2.jpg">悉尼:<span id="addtime">17:28:16 </span></label>'+
        '<label><img src="http://www.rttx999.com/images/q3.jpg">東京:<span id="tytime">15:28:16 </span></label>'+
        '<label><img src="http://www.rttx999.com/images/q4.jpg">蘇黎世:<span id="mxdtime">07:28:16 </span></label>'+
        '<label><img src="http://www.rttx999.com/images/q5.jpg">倫敦:<span id="ldtime">06:28:16 </span></label>'+
        '<label><img src="http://www.rttx999.com/images/q6.jpg">紐約:<span id="nytime">02:28:16 </span></label>'+
        '<label><img src="http://www.rttx999.com/images/q7.jpg">香港:<span id="hktime">14:28:16 </span></label>'+
    '</div>')


function showTime() {
var today = new Date((new Date()).getTime());


var hour = today.getHours();
var minute = today.getMinutes();
var second = today.getSeconds();
if (hour <= 9)
hour = "0" + hour;
if (minute <= 9)
minute = "0" + minute;
if (second <= 9)
second = "0" + second;
     
var utc = today.getTime() + (today.getTimezoneOffset() * 60000);
var bjDate = new Date(utc + (3600000 * (8)));

var ldDate = new Date(utc + (3600000 * (0)));
var nyDate = new Date(utc + (3600000 * (-4)));
var tyDate = new Date(utc + (3600000 * (9)));
var sxDate = new Date(utc + (3600000 * (2)));


var adDate = new Date(utc + (3600000 * (11)));
var mxDate = new Date(utc + (3600000 * (1)));

var bjhour = bjDate.getHours() < 9 ? ("0" + bjDate.getHours()) : bjDate.getHours();


var ldhour = ldDate.getHours() < 9 ? ("0" + ldDate.getHours()) : ldDate.getHours();
var nyhour = nyDate.getHours() < 9 ? ("0" + nyDate.getHours()) : nyDate.getHours();
var tyhour = tyDate.getHours() < 9 ? ("0" + tyDate.getHours()) : tyDate.getHours();
var sxhour = sxDate.getHours() < 9 ? ("0" + sxDate.getHours()) : sxDate.getHours();


var adhour = adDate.getHours() < 9 ? ("0" + adDate.getHours()) : adDate.getHours();
var mxhour = mxDate.getHours() < 9 ? ("0" + mxDate.getHours()) : mxDate.getHours();

var strbjdtime = bjhour + ":" + minute + ":" + second + " ";

var strldtime = ldhour + ":" + minute + ":" + second + " ";
var strnytime = nyhour + ":" + minute + ":" + second + " ";
var strtytime = tyhour + ":" + minute + ":" + second + " ";


var straddtime = adhour + ":" + minute + ":" + second + " ";
var strmxdtime = mxhour + ":" + minute + ":" + second + " ";
var strsxtime = sxhour + ":" + minute + ":" + second;

var strhktime = hour + ":" + minute + ":" + second + " ";

document.getElementById('bjdtime').innerHTML = strbjdtime;


document.getElementById('ldtime').innerHTML = strldtime; 
document.getElementById('nytime').innerHTML = strnytime;
document.getElementById('tytime').innerHTML = strtytime;

document.getElementById('addtime').innerHTML = straddtime;
document.getElementById('mxdtime').innerHTML = strmxdtime;


document.getElementById('hktime').innerHTML = strhktime;

setTimeout("showTime();", 1000); 
return (today.getTime());
}
showTime();




  </script>   
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
C# OCX控件之部署
一篇文章帶你了解JavaScript日期
3個(gè)最常用的JS時(shí)間特效
javascript表單驗(yàn)證大全,
FLASH時(shí)鐘的制作教程
JavaScript Date對(duì)象使用總結(jié)
更多類似文章 >>
生活服務(wù)
熱點(diǎn)新聞
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服