<!****问候****>
<SCRIPT language=JavaScript>
<!--
document.write("<center><font color=#990099 size=-1> ")
day = new Date()
hr = day.getHours()
minu=day.getMinutes()
s="嗨!您好,现在是:";
s=s+hr+"点"+minu+"分。 ";
if (hr ==1)
document.write(s+"已经是午夜一点多啦!别忘了休息喔!")
if (hr ==2)
document.write(s+"该休息了,身体可是革命的本钱啊!")
if (hr ==3)
document.write(s+"已是午夜三点多了喔!还没睡?")
if (hr ==4)
document.write(s+"四点多了,真不困哪?佩服佩服!")
if (hr ==5)
document.write(s+"这么早起床?还是彻夜未眠?")
if (hr ==6)
document.write(s+"早晨好!新的一天又开始啦!")
if (hr ==7)
document.write(s+"早安!吃过早饭了吗?")
if ((hr ==8) || (hr == 9) || (hr ==10))
document.write(s+"早!又是忙碌的一天,祝行事顺利!")
if (hr ==11)
document.write(s+"快中午啦,饿不饿?别太苦了自己了呀!")
if (hr ==12)
document.write(s+"中午喽!吃饱没有?")
if ((hr==13) || (hr==14))
document.write(s+"下午最爱犯错误,可要提起精神哦。")
if ((hr==15) || (hr==16) || (hr==17))
document.write(s+"下午好!")
if ((hr==18) || (hr==19))
document.write(s+"吃晚饭了吧?")
if ((hr==20) || (hr==21) || (hr==22))
document.write(s+"不爱看电视?太闷?来我这里就对了")
if (hr==23)
document.write(s+"快午夜了,要不要来快点心?注意身体哟")
if (hr==0)
document.write(s+"哇!凌晨了,你的精神好好哟!")
document.write("</font></center>")
//--->
</SCRIPT>
<CENTER><FONT color=#990099 size=-1>嗨!您好,现在是:11点41分。快中午啦,饿不饿?别太苦了自己了呀!</FONT></CENTER>
<!****问候结束****>
效果预览:嗨!您好,现在是:11点38分。快中午啦,饿不饿?别太苦了自己了呀!