标签:
<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