今天是

爱酷家


当前位置:首页 > 资源收藏 > 特效代码

标题栏显示当前时间特效代码分享

收集整理   发布时间:2012-10-23 21:31:00   阅读

标题栏显示当前时间特效代码分享

代码:
<script language="JavaScript1.2">
<!--hide
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()]
//--hide-->
</script>

 



注:⊙如转载本站原创作品,请务必包保留本文地址:

内容: