mjc 发表于 2007-4-27 11:54:12

***时间日期***中文星期

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
<scriptlanguage="javascript">
<!-- document.write("<center><font size=+1><b>")
now = new date() //定义新对象,new具有date的性质
document.write("<center><small>")
if (now.getday() == 5) document.write("星期五")

if (now.getday() == 6) document.write("星期六")

if (now.getday() == 0) document.write("星期日")

if (now.getday() == 1) document.write("星期一")

if (now.getday() == 2) document.write("星期二")

if (now.getday() == 3) document.write("星期三")

if (now.getday() == 4) document.write("星期四")

document.write("</small></center>")


//--> </script>

      










--------------------------------------

http://www.huoyue.com.cn 活跃网,活跃人群的论坛,访问活跃网,将给您带来意想不到的收获,还可以免费为您开论坛,让您免费拥有与朋友、网友交流的论坛。你是年轻人吗?你活跃你就上!
页: [1]
查看完整版本: ***时间日期***中文星期