步驟一 :
將以下程式碼複製 , 貼在網頁原始檔HTML <body> 與 </body> 之間 .
<script language="JavaScript"><!--
document.write("<table bgcolor=000000>"+"<font size=3 color=CCFF33><br>")
var now=new Date()
var hr
hr=now.getHours()
if (hr==0)
{document.write("深夜 12 點多了,還沒睡呀!是否還在忙呢?")}
if (hr==1)
{document.write("嗯!深夜 1 點多了!還不睡嗎?想做夜貓族嗎?")}
if (hr==2)
{document.write("疑?深夜 2 點多了!還不去睡呀!小心身體喔!")}
if (hr==3)
{document.write("深夜 3 點多了!真是超級標準的夜貓啊!")}
if (hr==4)
{document.write("哇?凌晨 4 點多了!是一夜未睡還是剛起床呀?")}
if (hr==5)
{document.write("早安啊!清晨 5 點多了!這麼早起床做運動?")}
if (hr==6)
{document.write("早安!清晨 6 點多了!該準備要刷牙洗臉了?")}
if (hr==7)
{document.write("早啊! 早上 7 點多了!準備要去上班上課了")}
if (hr==8)
{document.write("Hi!早上 8 點多了!早餐吃了沒呀?早餐很重要喔!")}
if (hr==9)
{document.write("疑!早上 9 點多了!上股市看看!")}
if (hr==10)
{document.write("現在是上午 10 點多了!上班無聊嗎?會愛睏嗎?")}
if (hr==11)
{document.write("嗯!上午 11 點多了!肚子是否餓餓呢?再撐一下!")}
if (hr==12)
{document.write("午安!中午 12 點多了!吃午飯了嗎?不要餓壞了喔!")}
if (hr==13)
{document.write("您好!現在是下午 1 點多了!先睡個午覺再說")}
if (hr==14)
{document.write("嘿!都下午 2 點多了!睡飽了嗎?繼續努力奮鬥吧!")}
if (hr==15)
{document.write("哈!下午 3 點多了!喝下午茶時間到囉!動一動吧!")}
if (hr==16)
{document.write("嗯..已經下午 4 點多了!上網聊聊天吧!")}
if (hr==17)
{document.write("您好!傍晚 5 點多了!您是否回到溫暖可愛的家呢?")}
if (hr==18)
{document.write("已經傍晚 6 點多了!肚子餓餓了嗎?先去吃個飯吧!")}
if (hr==19)
{document.write("咦?晚上 7 點多了!還沒吃飯啊?不要虐待自己喔!")}
if (hr==20)
{document.write("晚安!現在是 8 點多了!你是否覺得有點無聊呢?")}
if (hr==21)
{document.write("嗨!晚上 9 點多了!休息一下!")}
if (hr==22)
{document.write("現在是晚上 10 點多了!要睡覺了嗎?")}
if (hr==23)
{document.write("哇!已經晚上 11 點多了!一天又快過去了!")}
document.write("</font></font></table></center>")
// --></script>