每日問候

將下列程式碼複製至<head>程式碼</head>區內

<script language="JavaScript">
document.write("<center><font size=+1><b>")
now = new Date()
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("</b></center></font>")

</script>