(ÁÖ)¾ÆÀÌ¿£¾¾¿£ÀÌ ¸¸µç À¥¼Ö·ç¼Ç Æ÷Å» »çÀÌÆ® [°ñ¹ðÀÌ] ¿ÀÇÂ!!
½ºÅ©¸³Æ®ÀÚ·á½Ç
°ñ¹ðÀÌBoard
No.251   Ư¼ö¹®ÀÚ Á¦ÇÑÇϱâ(onKeyUp)
Name : °ñ¹ðÀÌ 6076 hit / 2007-01-05 10:17:29

<script language='JavaScript'>

document.write('<st'+'yle>');
document.write('td {font-size:12px; font-family:±¼¸²; text-decoration:none; }');
document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}');
document.write('A:hover {text-decoration:none; color:ff9900}');
document.write('font { font-size: 9pt; }');
document.write('.cnj_input {background-color:rgb(240,240,240);border-width:1pt; height:16pt;cursor:hand;}');
document.write('.cnj_input2 {border-width:1; border-color:rgb(204,204,204); border-style:solid;cursor:hand;}');
document.write('.cnj_input3 { border-width:1; border-style:solid; border-color:#000000; color:#0084D4; background-color:white;cursor:hand;}');
document.write('.cnj_input4 { scrollbar-face-color: #FFCC33;scrollbar-shadow-color:  #ffffff;scrollbar-highlight-color: #F3f3f3;scrollbar-3dlight-color: #ffffff;scrollbar-darkshadow-color: #F3f3f3;scrollbar-track-color: #ffffff;scrollbar-arrow-color: #f9f9f9;cursor:hand; }');
document.write('</st'+'yle>');
<!-- Original: Mikhail Esteves (miks80@yahoo.com) -->
<!-- Web Site: http://www.freebox.com/jackol -->
var mikExp = /[$@#%^&*()[]+_{}`~=|]/; // Á¦ÇÑÇÒ Æ¯¼ö¹®ÀÚ
// ÇöÀç Á¦ÇÑ µÇ¾î Àִ Ư¼ö¹®ÀÚ ¸ñ·ÏÀÔ´Ï´Ù.
// $  @ # % ^ & * ( ) [ ] + _ { } ` ~ = " |

// Ãß°¡½Ã¿¡¼­ ¿Í »çÀÌ¿¡ Á¦ÇÑÇÒ Æ¯¼ö¹®ÀÚ¸¦ ÀÔ·ÂÇÏ¸é µË´Ï´Ù.
function sc_check(val) {
var strPass = val.value;
var strLength = strPass.length;
var lchar = val.value.charAt((strLength) - 1);
if(lchar.search(mikExp) != -1) {
var tst = val.value.substring(0, (strLength) - 1);
alert ('       Á¦ÇѵǾî Àִ Ư¼ö ¹®ÀÚ ¸ñ·Ï n'
      +'====================================n'
      +' $  @ # % ^ & * ( ) [ ] + _ { } ` ~ = " | n'
      +'====================================nn'     
      +' Ư¼ö¹®ÀÚ´Â »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù.');
val.value = tst;

}
}
</script>

<form name="cnjform" action="../cgi/js/form-test.php3">
Ư¼ö¹®ÀÚ Á¦ÇÑÇϱâ :
<input type="text" name="cnj_text" size="35" maxlength="50" value="" onKeyUp="javascript:sc_check(cnjform.cnj_text);" class="cnj_input">
</form>

<!-- Script Size : 2.612 Bytes -->