클릭시 입력창에 글입력 준비
예제보기 http://www.yeoyoo.com/click.html
<head>사이에
<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
</script>
<body>사이에
<form>
<table cellpadding="3" cellspacing="1" width="458" bgcolor="#9933CC" align="center">
<tr>
<td bgcolor="#F0D3F0" height="25" width="98%">
<p align="center"><b>창 을 클릭하시면 원래글이 사라집니다.</b>
</td>
</tr>
<tr>
<td bgcolor="white" width="98%">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="342">
<p align="center"><input type="text" value="여기를 클릭하시고 글을 쓰세요." onFocus="clearText(this)" size="40" style="border-width:1px; border-color:rgb(102,102,102); border-style:solid;">
</td>
<td width="100" bgcolor="#9933CC">
<p align="center"><font color="white"><b>입 력</b></font></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
'컴퓨터-유용한팁 > 스크립트' 카테고리의 다른 글
팝업링크 누르면 페이지가 나타나며 팝업은 사라집니다 (0) | 2015.09.07 |
---|---|
팝업창을 내마음대로 (0) | 2015.09.07 |
견적서 총 합계 구하는 방법 (0) | 2015.09.07 |
링크 마우스 오버시 그라디언트효과 (0) | 2015.09.07 |
카운트 다운 소스(정해진날) (0) | 2015.09.07 |