<!--
 today=new Date();   
 function initArray(){   
   this.length=initArray.arguments.length   
   for(var i=0;i<this.length;i++)   
   this[i+1]=initArray.arguments[i]  }   
   var d=new initArray(   
     "星期日 全天开馆",   
     "星期一 全天开馆",   
     "星期二 全天开馆",   
     "星期三 全天开馆",   
     "星期四 下午闭馆",   
     "星期五 全天开馆",   
     "星期六 全天开馆");   
document.write(   
     " &nbsp;",   
     today.getYear(),"年",   
     today.getMonth()+1,"月",   
     today.getDate(),"日&nbsp;",   
     d[today.getDay()+1],
     "&nbsp;" );    

now = new Date(),hour = now.getHours() 
  if(hour < 7){document.write("读者，您早！")}   
else if (hour < 9){document.write("读者，早上好！")} 
else if (hour < 12){document.write("读者，上午好！")}   
else if (hour < 14){document.write("读者，午安！")}   
else if (hour < 17){document.write("读者，下午好！")}   
else if (hour < 22){document.write("读者，晚上好！")}   
else if (hour < 24){document.write("读者，晚安")}   

--> 
