﻿var initializationTime = (new Date()).getTime();
function showLeftTime() {
    var now = new Date();
    var year = now.getYear();
    var month = now.getMonth()+1;
    var day = now.getDate();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    if (seconds < 10) {
        seconds = "0" + seconds;
        document.all.show.innerHTML = +year + "." + month + "." + day + "." + hours + ":" + minutes + ":" + seconds + ":";
    }

    else {
        document.all.show.innerHTML = +year + "." + month + "." + day + "." + hours + ":" + minutes + ":" + seconds + ":";
    }
    //一秒刷新一次显示时间  
    var timeID = setTimeout(showLeftTime, 1000);
} 
