Memory Drive

반응형
 
  1.   function sign_show(arg)
  2.     {
  3.       var tipDiv = document.getElementById("tooltip");
  4.       tipDiv.style.display = "";
  5.       if (arg == 'id')
  6.      {
  7.         tipDiv.style.top  = "160px";
  8.         tipDiv.style.left = "280px";
  9.         tipDiv.innerHTML = "<div style=position:absolute;top:-8px;left:4px;z-index:3></div>사용하시는 E-MAIL 입력 메세지";
  10.       }
  11.       else if (arg == '????')
  12.      {
           이러쿵..저러쿵...
        }

       }
  13.     function sign_hide(arg)
  14.     {
  15.       var tipDiv = document.getElementById("tooltip");
  16.       tipDiv.style.display = "none";
  17.     }

<div id="tooltip" style="position:absolute;padding:6px 6px 6px 10px;width:160px;background-color:#ebe8d0;font-family:돋움;font-size:11px;border:1px dashed #c6c2a0;line-height:150%;display:none;z-index:2;"></div>

 
<input type="text" name="user_email" size="32" maxlength="200" onFocus="sign_show('email')" onBlur="sign_hide('email')">
 
반응형

'Computer_IT > Ajax' 카테고리의 다른 글

WEB 개발용 Debugging Tools  (0) 2008.03.18
JAVASCRIPT 10분 DOM 강좌  (0) 2008.03.09
[MSDN] XMLHttpRequest  (0) 2006.06.30
[DOM] Accesskey를 이용해 Focus설정  (0) 2006.06.29
CSS Properties Reference...  (0) 2006.06.29

반응형
  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' 카테고리의 다른 글

Fatal error: Class 'SoapClient' not found  (0) 2010.11.08
[JAVASCRIPT] 해상도 설정 보기  (0) 2006.06.29
외부 CSS파일 불러오기  (0) 2006.06.29