input box 클릭하지 않았을때 id라는 글자 보이고 클릭하면 사라지는 ㅋㅋ
<head>
 <meta http-equiv='Content-Type' content='text/html; charset=euc-kr' />
 <style type='text/css'>
  .id_blur { background: transparent url("login_bg.gif") top left}
  .id_focus { background: #ffffe0 ; color: #003300 }
  .pw_blur { background: transparent url("login_bg.gif") bottom left}
  .pw_focus { background: #ffffe0 ; color: #003300 }
 </style>
</head>
<body>

<form name='login_form' action='login.php'>
 <input type='text' name='id' onFocus="this.className='id_focus'" onBlur="if ( this.value == '' ) { this.className='id_blur' }" class='id_blur' />
 <br />
 <input type='password' name='pw' onFocus="this.className='pw_focus'" onBlur="if ( this.value == '' ) { this.className='pw_blur' }" class='pw_blur' />
</form>

저작자 표시 비영리 변경 금지
크리에이티브 커먼즈 라이선스
Creative Commons License
Posted by 주오때

댓글을 달아 주세요