小迪的Blog
学习ing...(注明:该Blog中的任何信息都非原创,只是作为个人的阅读笔记)
在标题栏显示时间:
<script language="JavaScript1.2">
<!--
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.title="欢迎你,今天是: "+Year+"年"+isnMonth[today.getMonth()]+Date+"日"+isnDay[today.getDay()]
//-->
</script>
posted on 2005-03-26 21:45  小迪  阅读(508)  评论(0编辑  收藏  举报