now = new Date(),hour = now.getHours()
if(hour >= 5 && hour<10){document.write("早上好!欢迎您光临!")}
else if (hour >= 10 && hour<14){document.write("中午好! 欢迎您光临!")}
else if (hour >= 14 && hour<18){document.write("下午好! 欢迎您光临!")}
else if (hour >= 18 && hour<23){document.write("晚上好! 欢迎您光临!")}
else if (hour >= 23){document.write("夜深了,请注意休息!")}
else if (hour >= 0 && hour<5){document.write("夜深了,请注意休息!")}