Re: [問題] 插入時間
<html>
<head>
<title>參考</title>
<script language='javascript'>
var today = new Date()
var day=new Array("星期日",
/*和上面接成一行*/"星期一","星期二","星期三","星期四","星期五","星期六")
var ss ="今天是 "+today.getYear()+" 年 "+(today.getMonth()+1)+" 月 "
/*和上面接成一行*/+today.getDate()+" 日 "+day[today.getDay()]
document.write("<CENTER><FONT COLOR=000000>")
document.write("<CENTER>" + ss.fontsize(3) + "</CENTER>");
document.write("</FONT>")
</script>
</head>
<body>
</body>
</html>
以上實驗過,可執行,可參考一下
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.141.152.82
→
220.141.152.82 05/26, , 1F
220.141.152.82 05/26, 1F
推
61.229.60.64 05/27, , 2F
61.229.60.64 05/27, 2F
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章