자 바스 크 립 트 는 "좋 은 아침, 좋 은 오전, 좋 은 저녁, 좋 은 저녁" 이 라 고 표 시 했 습 니 다.

   
   
   
   
  1. <html> 
  2.               <head> 
  3.                          <meta http-equiv="content-type" content="text/html" /> 
  4.                          <meta name="author" content="" /> 
  5.                          <title>js , , , , title> 
  6.               head> 
  7.  
  8.  
  9.               <body> 
  10.                          <script language="javaScript"> 
  11.                                         now = new Date(),hour = now.getHours() 
  12.                                         if(hour < 6){document.write(" !")} 
  13.                                         else if (hour < 9){document.write(" !")} 
  14.                                         else if (hour < 12){document.write(" !")} 
  15.                                         else if (hour < 14){document.write(" !")} 
  16.                                         else if (hour < 17){document.write(" !")} 
  17.                                         else if (hour < 19){document.write(" !")} 
  18.                                         else if (hour < 22){document.write(" !")} 
  19.                                         else {document.write(" !")} 
  20.                           script> 
  21.              body> 
  22. html> 

좋은 웹페이지 즐겨찾기