|
|
|
|
Á¤¼ö / 2000-09-22 / ¿ÀÈÄ 5:14:37 / 203.230.248.195
Á¶È¸¼ö : 116
|
[Áú¹®] 1¹ø ´ä... |
>
> ´Ù¸§ÀÌ ¾Æ´Ï¶ó ÇöÀç °£´ÜÇÑ ¸Þ¸ðÀåÀ» ¸¸µé°í Àִµ¥.
> ¸î°¡Áö ¹®Á¦Á¡ÀÌ ¹ß°ßµÇ¾ú½À´Ï´Ù.
> 1. input value°ªÀ» ÁÖ¾ú´Âµ¥ ÀÌ°ÍÀÌ Ä¿¼°¡ °¡¸é ¾ø¾îÁ®¾ß Çϴµ¥ °è¼Ó ³²¾Æ ÀÖ¾î¼ ÀÏÀÏÀÌ Áö¿ö¾ß ÇÑ´Ù´Â °ÍÀÔ´Ï´Ù.
> ====>input type="text" name="name" size="7" style="border: 1 dashed" value='À̸§' maxlength="10"<======================
-----------------------------------------------------------
<script language="javascript">
function clearField(field){
if (field.value == field.defaultValue) {
field.value = "";
}
}
function checkField(field){
if (field.value == "") {
field.value = field.defaultValue;
}
}
</script>
<input type="text" name="name" value=" À̸§ Àû´Â °÷ ^.^ " size=22 onBlur="checkField(this)" onFocus="clearField(this)">
|
|
|