이메일 selectbox | +JavaScript
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15"></td>
<td width="80"><img src="../images/member_txt_icon06.gif" width="44" height="16"></td>
<td><input name="email" type="text" class="INPUT_LINE" size="15" maxlength="30" onChange="fChgInputField(this.name);" value="<%=v_email1%>">@<INPUT TYPE="text" NAME="email2" class="INPUT_LINE" size="15" maxlength="30" onChange="fChgInputField(this.name);" readonly value="<%=v_email2%>">
<select name="sltEmail2" onChange="fChgInputField(this.name)" readonly>
<option value='' selected>선택하세요</option>
<option value='01' >chol.com</option>
<option value='02' >dreamwiz.com</option>
<option value='03' >empal.com</option>
<option value='04' >freechal.com</option>
<option value='05' >gmail.com</option>
<option value='06' >hanmail.net</option>
<option value='07' >hanmir.com</option>
<option value='08' >hitel.net</option>
<option value='09' >hotmail.com</option>
<option value='10' >korea.com</option>
<option value='11' >nate.com</option>
<option value='12' >naver.com</option>
<option value='13' >orgio.com</option>
<option value='14' >paran.com</option>
<option value='15' >sayclub.com</option>
<option value='16' >shinbiro.com</option>
<option value='17' >yahoo.co.kr</option>
<option value='18' >yahoo.com</option>
<option value='99' >기타(직접입력)</option>
</select>
<BR><INPUT NAME="mailing" TYPE="CHECKBOX" CLASS="INPUT_LINE" VALUE="Y" checked> <span class="no_t3">e-mail 수신동의</span>
</td>
</tr>
</table>
---------------------------------------------------------------------------------------
function Chk_Email(obj_email) {
var ln = obj_email.value.length;
var chSpecial = false;
var noMail = false;
var chDotCnt = 0;
var chAltCnt = 0;
var preCh = "";
for (var i=0; i<ln; ++i) {
var ch = obj_email.value.charAt(i);
if (ch == '-' ||ch == '_') continue;
if (ch == '@') noMail = true;
if (ch == '.') noMail = true;
if (ch > 'z' || ch < '0' || ch == '^' || ch == ';' || ch == ':') chSpecial = true;
if (ch == '\\' || ch == '`' || ch == '<' || ch == '>' || ch == '=' ) chSpecial = true;
preCh = ch;
}
if(chSpecial) {
alert("한글, 공란, 특수문자는 EMail 아이디로 입력할 수 없습니다.");
obj_email.focus();
return false;
}
if(obj_email.value == "" || noMail) {
alert("EMail 아이디를 정확히 입력하십시오.");
obj_email.focus();
return false;
}
return true;
}
function Chk_Email_b(obj_email2) {
var ln = obj_email2.value.length;
var chSpecial = false;
var noMail = false;
var chDotCnt = 0;
var chAltCnt = 0;
var preCh = "";
for (var i=0; i<ln; ++i) {
var ch = obj_email2.value.charAt(i);
if (ch == '-' ||ch == '_') continue;
if (ch == '.') chDotCnt ++;
if (ch == '.' && chAltCnt == 0) noMail = true;
if (ch == '.' && preCh == '.') noMail = true;
if (ch > 'z' || ch < '0' || ch == '^' || ch == ';' || ch == ':') chSpecial = true;
if (ch == '\\' || ch == '`' || ch == '<' || ch == '>' || ch == '=' ) chSpecial = true;
}
if(document.memberform.sltEmail2.value == '99'){
if(chSpecial) {
alert("한글, 공란, 특수문자는 EMail 주소로 입력할 수 없습니다.");
obj_email2.focus();
return false;
}
if(chDotCnt<1 || chDotCnt>3) {
alert("EMail 주소를 정확히 입력하십시오.");
obj_email2.focus();
return false;
}
}
return true;
}
//===================================
// Email Check Function
//===================================
function fChgInputField(vObjNM) {
with (memberform) {
switch (vObjNM) {
case 'sltEmail2' :
var selecdIdx = sltEmail2.options.selectedIndex;
if(sltEmail2.options[selecdIdx].value == "99") {
email2.readOnly = false;
email2.value = "";
email2.focus();
} else {
email2.readOnly = true;
email2.value = sltEmail2.options[selecdIdx].text;
}
break;
}
}
}<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<tr>
<td width="15"></td>
<td width="80"><img src="../images/member_txt_icon06.gif" width="44" height="16"></td>
<td><input name="email" type="text" class="INPUT_LINE" size="15" maxlength="30" onChange="fChgInputField(this.name);" value="<%=v_email1%>">@<INPUT TYPE="text" NAME="email2" class="INPUT_LINE" size="15" maxlength="30" onChange="fChgInputField(this.name);" readonly value="<%=v_email2%>">
<select name="sltEmail2" onChange="fChgInputField(this.name)" readonly>
<option value='' selected>선택하세요</option>
<option value='01' >chol.com</option>
<option value='02' >dreamwiz.com</option>
<option value='03' >empal.com</option>
<option value='04' >freechal.com</option>
<option value='05' >gmail.com</option>
<option value='06' >hanmail.net</option>
<option value='07' >hanmir.com</option>
<option value='08' >hitel.net</option>
<option value='09' >hotmail.com</option>
<option value='10' >korea.com</option>
<option value='11' >nate.com</option>
<option value='12' >naver.com</option>
<option value='13' >orgio.com</option>
<option value='14' >paran.com</option>
<option value='15' >sayclub.com</option>
<option value='16' >shinbiro.com</option>
<option value='17' >yahoo.co.kr</option>
<option value='18' >yahoo.com</option>
<option value='99' >기타(직접입력)</option>
</select>
<BR><INPUT NAME="mailing" TYPE="CHECKBOX" CLASS="INPUT_LINE" VALUE="Y" checked> <span class="no_t3">e-mail 수신동의</span>
</td>
</tr>
</table>
---------------------------------------------------------------------------------------
function Chk_Email(obj_email) {
var ln = obj_email.value.length;
var chSpecial = false;
var noMail = false;
var chDotCnt = 0;
var chAltCnt = 0;
var preCh = "";
for (var i=0; i<ln; ++i) {
var ch = obj_email.value.charAt(i);
if (ch == '-' ||ch == '_') continue;
if (ch == '@') noMail = true;
if (ch == '.') noMail = true;
if (ch > 'z' || ch < '0' || ch == '^' || ch == ';' || ch == ':') chSpecial = true;
if (ch == '\\' || ch == '`' || ch == '<' || ch == '>' || ch == '=' ) chSpecial = true;
preCh = ch;
}
if(chSpecial) {
alert("한글, 공란, 특수문자는 EMail 아이디로 입력할 수 없습니다.");
obj_email.focus();
return false;
}
if(obj_email.value == "" || noMail) {
alert("EMail 아이디를 정확히 입력하십시오.");
obj_email.focus();
return false;
}
return true;
}
function Chk_Email_b(obj_email2) {
var ln = obj_email2.value.length;
var chSpecial = false;
var noMail = false;
var chDotCnt = 0;
var chAltCnt = 0;
var preCh = "";
for (var i=0; i<ln; ++i) {
var ch = obj_email2.value.charAt(i);
if (ch == '-' ||ch == '_') continue;
if (ch == '.') chDotCnt ++;
if (ch == '.' && chAltCnt == 0) noMail = true;
if (ch == '.' && preCh == '.') noMail = true;
if (ch > 'z' || ch < '0' || ch == '^' || ch == ';' || ch == ':') chSpecial = true;
if (ch == '\\' || ch == '`' || ch == '<' || ch == '>' || ch == '=' ) chSpecial = true;
}
if(document.memberform.sltEmail2.value == '99'){
if(chSpecial) {
alert("한글, 공란, 특수문자는 EMail 주소로 입력할 수 없습니다.");
obj_email2.focus();
return false;
}
if(chDotCnt<1 || chDotCnt>3) {
alert("EMail 주소를 정확히 입력하십시오.");
obj_email2.focus();
return false;
}
}
return true;
}
//===================================
// Email Check Function
//===================================
function fChgInputField(vObjNM) {
with (memberform) {
switch (vObjNM) {
case 'sltEmail2' :
var selecdIdx = sltEmail2.options.selectedIndex;
if(sltEmail2.options[selecdIdx].value == "99") {
email2.readOnly = false;
email2.value = "";
email2.focus();
} else {
email2.readOnly = true;
email2.value = sltEmail2.options[selecdIdx].text;
}
break;
}
}
}<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8030 | 9년 전 | 363 | ||
| 8029 | 9년 전 | 307 | ||
| 8028 | 9년 전 | 262 | ||
| 8027 | 9년 전 | 276 | ||
| 8026 | 9년 전 | 334 | ||
| 8025 | 9년 전 | 380 | ||
| 8024 | 9년 전 | 341 | ||
| 8023 | 9년 전 | 388 | ||
| 8022 | 9년 전 | 320 | ||
| 8021 | 9년 전 | 326 | ||
| 8020 | 9년 전 | 319 | ||
| 8019 | 9년 전 | 342 | ||
| 8018 | 9년 전 | 446 | ||
| 8017 | 9년 전 | 537 | ||
| 8016 | 9년 전 | 326 | ||
| 8015 | 9년 전 | 388 | ||
| 8014 | 9년 전 | 325 | ||
| 8013 | 9년 전 | 232 | ||
| 8012 | 9년 전 | 240 | ||
| 8011 | 9년 전 | 445 | ||
| 8010 | 9년 전 | 298 | ||
| 8009 | 9년 전 | 286 | ||
| 8008 | 9년 전 | 285 | ||
| 8007 | 9년 전 | 427 | ||
| 8006 | 9년 전 | 460 | ||
| 8005 |
|
9년 전 | 966 | |
| 8004 | 9년 전 | 356 | ||
| 8003 | 9년 전 | 420 | ||
| 8002 | 9년 전 | 321 | ||
| 8001 |
|
9년 전 | 664 | |
| 8000 | 9년 전 | 416 | ||
| 7999 | 9년 전 | 374 | ||
| 7998 | 9년 전 | 426 | ||
| 7997 | 9년 전 | 310 | ||
| 7996 | 9년 전 | 533 | ||
| 7995 | 9년 전 | 453 | ||
| 7994 | 9년 전 | 329 | ||
| 7993 | 9년 전 | 392 | ||
| 7992 | 9년 전 | 505 | ||
| 7991 | 9년 전 | 249 | ||
| 7990 | 9년 전 | 282 | ||
| 7989 | 9년 전 | 300 | ||
| 7988 | 9년 전 | 722 | ||
| 7987 | 9년 전 | 423 | ||
| 7986 | 9년 전 | 414 | ||
| 7985 | 9년 전 | 510 | ||
| 7984 | 9년 전 | 427 | ||
| 7983 | 9년 전 | 660 | ||
| 7982 | 9년 전 | 514 | ||
| 7981 | 9년 전 | 465 | ||
| 7980 | 9년 전 | 488 | ||
| 7979 | 9년 전 | 470 | ||
| 7978 | 9년 전 | 449 | ||
| 7977 | 9년 전 | 389 | ||
| 7976 | 9년 전 | 847 | ||
| 7975 | 9년 전 | 359 | ||
| 7974 | 9년 전 | 393 | ||
| 7973 | 9년 전 | 595 | ||
| 7972 | 9년 전 | 381 | ||
| 7971 | 9년 전 | 456 | ||
| 7970 | 9년 전 | 294 | ||
| 7969 | 9년 전 | 541 | ||
| 7968 | 9년 전 | 381 | ||
| 7967 | 9년 전 | 367 | ||
| 7966 | 9년 전 | 369 | ||
| 7965 |
|
9년 전 | 1016 | |
| 7964 | 9년 전 | 396 | ||
| 7963 | 9년 전 | 395 | ||
| 7962 | 9년 전 | 372 | ||
| 7961 |
전갈자리남자
|
9년 전 | 504 | |
| 7960 | 9년 전 | 961 | ||
| 7959 | 9년 전 | 552 | ||
| 7958 | 9년 전 | 408 | ||
| 7957 | 9년 전 | 366 | ||
| 7956 | 9년 전 | 367 | ||
| 7955 | 9년 전 | 453 | ||
| 7954 | 9년 전 | 377 | ||
| 7953 | 9년 전 | 427 | ||
| 7952 | 9년 전 | 354 | ||
| 7951 | 9년 전 | 502 | ||
| 7950 | 9년 전 | 386 | ||
| 7949 | 9년 전 | 385 | ||
| 7948 | 9년 전 | 321 | ||
| 7947 | 9년 전 | 929 | ||
| 7946 | 9년 전 | 430 | ||
| 7945 | 9년 전 | 394 | ||
| 7944 | 9년 전 | 423 | ||
| 7943 | 9년 전 | 373 | ||
| 7942 | 9년 전 | 403 | ||
| 7941 | 9년 전 | 390 | ||
| 7940 | 9년 전 | 882 | ||
| 7939 | 9년 전 | 352 | ||
| 7938 | 9년 전 | 385 | ||
| 7937 | 9년 전 | 276 | ||
| 7936 | 9년 전 | 882 | ||
| 7935 | 9년 전 | 448 | ||
| 7934 | 9년 전 | 419 | ||
| 7933 | 9년 전 | 509 | ||
| 7932 | 9년 전 | 485 | ||
| 7931 | 9년 전 | 531 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기