• 2009-11-10

    时间日期篇--显示日期 - [网页资料]

    Tag:

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://www.blogbus.com/dickmoore-logs/70835853.html

    <HTML>
    <HEAD>
    <TITLE>时间日期篇--显示日期</TITLE>
    </HEAD>

    <BODY bgcolor="#fef4d2" background="../images/background3.JPG" >
    <br>
    <br>
    <center>
    <font color="ffaafa">
    <h2><font color="#FF0000"><b>时间日期篇--显示日期</b></font></h2>
    </font>
    <hr width=300>
    <br><br>

    <!-- 案例代码开始 -->

    <script language="JavaScript">
    var isnMonth = new
    Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
    var isnDay = new
    Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日");
    today = new Date () ;
    Year=today.getYear();
    Date=today.getDate();
    if (document.all)
    document.write("今天是: "+Year+"年"+isnMonth[today.getMonth()]+Date+"日"+isnDay[today.getDay()])
    </script>


    <!-- 案例代码结束 -->

    </center></BODY>

    </HTML>

    分享到: