[JAVASCRIPT] 입력Form ToolTip 샘플
Computer_IT/Ajax2006. 10. 1. 17:30
반응형
- function sign_show(arg)
- {
- var tipDiv = document.getElementById("tooltip");
- tipDiv.style.display = "";
- if (arg == 'id')
- {
- tipDiv.style.top = "160px";
- tipDiv.style.left = "280px";
- tipDiv.innerHTML = "<div style=position:absolute;top:-8px;left:4px;z-index:3></div>사용하시는 E-MAIL 입력 메세지";
- }
- else if (arg == '????')
- {
이러쿵..저러쿵...
}
} - function sign_hide(arg)
- {
- var tipDiv = document.getElementById("tooltip");
- tipDiv.style.display = "none";
- }
<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 |
[javascript] 1초마다 시간 출력
Computer_IT/PHP2006. 9. 29. 01:17
반응형
AJAX의 기본을 쌓기 위해...
결과
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
- <title>Clock</title>
- <script language="JavaScript">
- function printTime() {
- // clock 객체 생성
- var clock = document.getElementById("clock");
- var now = new Date();
- clock.innerHTML =
- now.getFullYear() + "년 " +
- (now.getMonth()+1) + "월 " +
- now.getDate() + "일 " +
- now.getHours() + "시 " +
- now.getMinutes() + "분 " +
- now.getSeconds() + "초";
- // 1초 후에 함수 호출
- setTimeout("printTime()", 1000);
- };
- // 창이뜨면, html이 로딩되면 함수 호출
- window.onload = function() {
- printTime();
- };
- </script>
- </head>
- <body> 현재 시간은 <span id="clock"></span>
- </body>
- </html>
결과
현재 시간은 2006년 9월 29일 1시 15분 3초
현재 시간은 2006년 9월 29일 1시 15분 4초
....
....
현재 시간은 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 |