很多人都會放一些問候語在 blog 裡,這個每小時問候語就非常好用囉。

最頂第一行 font size=4 是字型大小
第五行 color=blue 是字顏色
所有中文字句中、可改寫喜歡的字句

<font size=4>
<script language=JavaScript>
var today = new Date ()
var hours = today.getHours();
document.write( "<font color=blue face='新細明體'>");
if (hours <=0) document.write("午夜 12 點多了,晚安");
else if (hours <= 1) document.write("午夜 1 點多了");
else if (hours <= 2) document.write("午夜 2 點丫");
else if (hours <= 3) document.write("已經午夜 3 點多了");
else if (hours <= 4) document.write("已經午夜 4 點多了");
else if (hours <= 5) document.write("早ㄚ! 5 點多了");
else if (hours <= 6) document.write("早ㄚ!6 點多了");
else if (hours <= 7) document.write("早ㄚ!已7 點多了");
else if (hours <= 8) document.write("上午 8 點多了");
else if (hours <= 9) document.write("上午 9 點多了");
else if (hours <= 10) document.write("上午 10 點");
else if (hours <= 11) document.write("上午 11 點多了");
else if (hours <= 12) document.write("中午 12 點");
else if (hours <= 13) document.write("下午 1 點");
else if (hours <= 14) document.write("下午 2 點喇");
else if (hours <= 15) document.write("下午 3 點丫");
else if (hours <= 16) document.write("下午 4 點");
else if (hours <= 17) document.write("下午 5 點");
else if (hours <= 18) document.write("下午 6 點多了");
else if (hours <= 19) document.write("晚上 7 點多了");
else if (hours <= 20) document.write("晚上 8 點了");
else if (hours <= 21) document.write("晚上 9 點了");
else if (hours <= 22) document.write("晚上 10 點了");
else if (hours <= 23) document.write("晚上 11 點了");
</script></font>
arrow
arrow
    全站熱搜

    Cat Yee 發表在 痞客邦 留言(9) 人氣()