寻求一个显示日期的网页制作代码
- 提问者网友:欲劫无渡
- 2021-06-08 21:29
- 五星知识达人网友:上分大魔王
- 2021-06-08 22:03
<html>
<head>
<title>网页特效|Linkweb.cn/Js|---最简单的获取星期与日期的JS</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<script language="javascript">
var today=new Date;
var week=new Array(7);
week[0]="天";
week[1]="一";
week[2]="二";
week[3]="三";
week[4]="四";
week[5]="五";
week[6]="六";
document.write("<marquee>今天"+today.getYear()+"年"+(today.getMonth()+1)+"月"+today.getDate()+"日 星期"+week[today.getDay()]+"</marquee>");
</script>
</body>
</html>
- 1楼网友:忘川信使
- 2021-06-09 01:17
<script type="text/JavaScript" src="Scripts/date.js"></script>
// JavaScript Document var enable=0;today=new Date(); var day; var date; var time_start=new Date(); var clock_start=time_start.getTime(); if (today.getDay()==0) day="日"; if (today.getDay()==1) day="一"; if (today.getDay()==2) day="二"; if (today.getDay()==3) day="三"; if (today.getDay()==4) day="四"; if (today.getDay()==5) day="五"; if (today.getDay()==6) day="六"; date=""+(today.getYear())+"年"+(today.getMonth()+1)+"月"+(today.getDate())+"日 星期"; document.write("<span style='font-size:9pt;text-align:center'>"+date); document.write(day+"</span>");
- 2楼网友:春色三分
- 2021-06-09 00:08
- 3楼网友:夜风逐马
- 2021-06-08 23:15
- 4楼网友:英雄的欲望
- 2021-06-08 23:01
我也想要。。有的话告诉我下哈