<script language="JavaScript" type="text/JavaScript">
    <!--
        tmpDate = new Date();
        date = tmpDate.getDate();
        month = tmpDate.getMonth() + 1;
        year = tmpDate.getYear();
        document.write(year);
        document.write("年");
        document.write(month);
        document.write("月");
        document.write(date);
        document.write("日 ");

        myArray = new Array(6);
        myArray[0] = "星期日"
        myArray[1] = "星期一"
        myArray[2] = "星期二"
        myArray[3] = "星期三"
        myArray[4] = "星期四"
        myArray[5] = "星期五"
        myArray[6] = "星期六"
        weekday = tmpDate.getDay();
        if (weekday == 0 | weekday == 6) {
            document.write(myArray[weekday])
        }
        else {
            document.write(myArray[weekday])
        };
    // -->
</script>
<span id="liveclock" style"=width: 109px; height: 15px"></span>
<SCRIPT language=javascript>
    function www_helpor_net() {
        var Digital = new Date()
        var hours = Digital.getHours()
        var minutes = Digital.getMinutes()
        var seconds = Digital.getSeconds()

        if (minutes <= 9)
            minutes = "0" + minutes
        if (seconds <= 9)
            seconds = "0" + seconds
        myclock = "现在时刻:<font size='4' face='Arial black'>" + hours + ":" + minutes + ":" + seconds + "</font>"
        if (document.layers) {
            document.layers.liveclock.document.write(myclock)
            document.layers.liveclock.document.close()
        } else if (document.all)
            liveclock.innerHTML = myclock
        setTimeout("www_helpor_net()", 1000)
    }
    www_helpor_net();
    //-->
</SCRIPT>

posted on 2013-12-09 15:36  微笑点燃希望  阅读(498)  评论(0编辑  收藏  举报
font=white