달력

03

« 2010/03 »

  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  •  
  •  
  •  

'Computer/IT/PHP'에 해당되는 글 3

  1. 2006/09/29 [javascript] 1초마다 시간 출력 (1)
  2. 2006/06/29 [JAVASCRIPT] 해상도 설정 보기
  3. 2006/06/29 외부 CSS파일 불러오기
2006/09/29 01:17

[javascript] 1초마다 시간 출력 Computer/IT/PHP2006/09/29 01:17

  AJAX의 기본을 쌓기 위해...
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
  3.   <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
  5.     <title>Clock</title>
  6.     <script language="JavaScript">
  7.       function printTime() {
  8.         // clock 객체 생성
  9.         var clock = document.getElementById("clock");
  10.         var now = new Date();
  11.         clock.innerHTML =
  12.           now.getFullYear() + "년 " +
  13.           (now.getMonth()+1) + "월 " +
  14.           now.getDate() + "일 " +
  15.           now.getHours() + "시 " +
  16.           now.getMinutes() + "분 " +
  17.           now.getSeconds() + "초";
  18.          
  19.         // 1초 후에 함수 호출
  20.         setTimeout("printTime()", 1000);
  21.       };
  22.      
  23.       // 창이뜨면, html이 로딩되면 함수 호출
  24.       window.onload = function() {
  25.         printTime();
  26.       };
  27.     </script>
  28.   </head>
  29.   <body> 현재 시간은 <span id="clock"></span>
  30.   </body>
  31. </html>

결과
현재 시간은 2006년 9월 29일 1시 15분 3초
현재 시간은 2006년 9월 29일 1시 15분 4초
....
....

'Computer/IT > PHP' 카테고리의 다른 글

[javascript] 1초마다 시간 출력  (1) 2006/09/29
[JAVASCRIPT] 해상도 설정 보기  (0) 2006/06/29
외부 CSS파일 불러오기  (0) 2006/06/29
Posted by 싸구려코드
2006/06/29 15:55

[JAVASCRIPT] 해상도 설정 보기 Computer/IT/PHP2006/06/29 15:55

<html>
<body>
<script type="text/javascript">
document.write("해상도 : ")
document.write(screen.width + "*" + screen.height)
document.write("<br />")
document.write("보기 가능영역 : ")
document.write(screen.availWidth + "*" + screen.availHeight)
document.write("<br />")
document.write("색상 : ")
document.write(screen.colorDepth)
document.write("<br />")
document.write("버퍼 : ")
document.write(screen.bufferDepth)
document.write("<br />")
document.write("XDPI : ")
document.write(screen.deviceXDPI)
document.write("<br />")
document.write("YDPI : ")
document.write(screen.deviceYDPI)
document.write("<br />")
document.write("LogicalXDPI: ")
document.write(screen.logicalXDPI)
document.write("<br />")
document.write("LogicalYDPI: ")
document.write(screen.logicalYDPI)
document.write("<br />")
document.write("FontSmoothingEnabled: ")
document.write(screen.fontSmoothingEnabled)
document.write("<br />")
document.write("PixelDepth: ")
document.write(screen.pixelDepth)
document.write("<br />")
document.write("UpdateInterval: ")
document.write(screen.updateInterval)
document.write("<br />")
document.write("Window X position : ")
document.write(window.screenLeft)
document.write("<br />")
document.write("Window Y position : ")
document.write(window.screenTop)
document.write("<br />")
</script>
</body>
</html>

'Computer/IT > PHP' 카테고리의 다른 글

[javascript] 1초마다 시간 출력  (1) 2006/09/29
[JAVASCRIPT] 해상도 설정 보기  (0) 2006/06/29
외부 CSS파일 불러오기  (0) 2006/06/29
Posted by 싸구려코드
2006/06/29 14:39

외부 CSS파일 불러오기 Computer/IT/PHP2006/06/29 14:39

<head>
<link rel="stylesheet" type="text/css" href="파일이름.css" />
</head>

'Computer/IT > PHP' 카테고리의 다른 글

[javascript] 1초마다 시간 출력  (1) 2006/09/29
[JAVASCRIPT] 해상도 설정 보기  (0) 2006/06/29
외부 CSS파일 불러오기  (0) 2006/06/29
Posted by 싸구려코드