码迷,mamicode.com
首页 > 其他好文 > 详细

时间日期类--显示时间

时间:2015-04-03 00:13:14      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

<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>

<>

时间日期类--显示时间

标签:

原文地址:http://www.cnblogs.com/lingyi1111/p/4388779.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!