Re: [問題] 插入時間

看板Web_Design作者 (善假狼)時間19年前 (2005/05/26 23:25), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/1
<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
補充一下,只在IE實驗過
220.141.152.82 05/26, 1F

61.229.60.64 05/27, , 2F
可以嚕 真的很感謝^^
61.229.60.64 05/27, 2F
文章代碼(AID): #12bUfJAw (Web_Design)
文章代碼(AID): #12bUfJAw (Web_Design)