간단하지만 많이 사용하는 기능입니다
<html>
<head>
<meta http-equiv=content-type content=text/html; charset=euc-kr>
<!---- [1단계] 아래의 스크립트를 HEAD 부분에 복사 해 넣으세요 ----->
<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value) {
thefield.value = ""
}
}
</script>
<!--------------------------- 여기까지 ---------------------------->
</head>
<body>
<p>마우스를 클릭하면 텍스트가 사라집니다
<!---- [2단계] 아래와 같은 방법으로 태그와 코드를 복사 해 넣으세요 --->
<form>
<input type="text" value="검색어를 입력 하세요" onFocus="clearText(this)">
</form>
<!--------------------------- 여기까지 ---------------------------->
</body>
</html>
■■■■■■■■■■
하나의 입력영역에서만 사용하려면 아래처럼 간단한 방법으로도 가능합니다.
<form>
<input type="text" onFocus="this.value=''" value="기본값">
</form>
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
8 | Server centos5 네트워크 설정 | ||
7 | Server Xshell에서 숫자 키패드가 안 먹힐 때 | ||
6 | Server 특정 파일을 제외하고 압축 | ||
5 | Server Linux 서버에서 Disk 마운트 | ||
4 | Server Linux에서 DNS를 못 찾을 때 | ||
3 | Server centos5에서 부팅방법 결정 | ||
2 | Server 리눅스 배포판 확인 | ||
1 | Server disk 마운트 |