이메일 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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 474 | ||
| 7929 | 9년 전 | 408 | ||
| 7928 | 9년 전 | 484 | ||
| 7927 | 9년 전 | 386 | ||
| 7926 | 9년 전 | 694 | ||
| 7925 | 9년 전 | 420 | ||
| 7924 | 9년 전 | 402 | ||
| 7923 | 9년 전 | 388 | ||
| 7922 | 9년 전 | 419 | ||
| 7921 | 9년 전 | 435 | ||
| 7920 | 9년 전 | 344 | ||
| 7919 | 9년 전 | 355 | ||
| 7918 | 9년 전 | 509 | ||
| 7917 | 9년 전 | 363 | ||
| 7916 | 9년 전 | 451 | ||
| 7915 | 9년 전 | 463 | ||
| 7914 | 9년 전 | 474 | ||
| 7913 | 9년 전 | 651 | ||
| 7912 | 9년 전 | 482 | ||
| 7911 | 9년 전 | 406 | ||
| 7910 | 9년 전 | 458 | ||
| 7909 | 9년 전 | 572 | ||
| 7908 | 9년 전 | 511 | ||
| 7907 | 9년 전 | 442 | ||
| 7906 | 9년 전 | 464 | ||
| 7905 | 9년 전 | 433 | ||
| 7904 | 9년 전 | 417 | ||
| 7903 | 9년 전 | 430 | ||
| 7902 | 9년 전 | 605 | ||
| 7901 |
|
9년 전 | 770 | |
| 7900 | 9년 전 | 666 | ||
| 7899 | 9년 전 | 448 | ||
| 7898 | 9년 전 | 444 | ||
| 7897 | 9년 전 | 404 | ||
| 7896 | 9년 전 | 420 | ||
| 7895 | 9년 전 | 539 | ||
| 7894 | 9년 전 | 445 | ||
| 7893 | 9년 전 | 425 | ||
| 7892 | 9년 전 | 460 | ||
| 7891 | 9년 전 | 816 | ||
| 7890 | 9년 전 | 1235 | ||
| 7889 | 9년 전 | 771 | ||
| 7888 |
limsy1987
|
9년 전 | 580 | |
| 7887 | 9년 전 | 635 | ||
| 7886 | 9년 전 | 518 | ||
| 7885 | 9년 전 | 490 | ||
| 7884 | 9년 전 | 482 | ||
| 7883 | 9년 전 | 490 | ||
| 7882 | 9년 전 | 548 | ||
| 7881 | 9년 전 | 523 | ||
| 7880 | 9년 전 | 634 | ||
| 7879 | 9년 전 | 524 | ||
| 7878 | 9년 전 | 1299 | ||
| 7877 | 9년 전 | 822 | ||
| 7876 | 9년 전 | 565 | ||
| 7875 | 9년 전 | 636 | ||
| 7874 |
|
9년 전 | 833 | |
| 7873 | 9년 전 | 558 | ||
| 7872 | 9년 전 | 728 | ||
| 7871 | 9년 전 | 544 | ||
| 7870 | 9년 전 | 664 | ||
| 7869 | 9년 전 | 479 | ||
| 7868 | 9년 전 | 520 | ||
| 7867 | 10년 전 | 528 | ||
| 7866 | 10년 전 | 583 | ||
| 7865 | 10년 전 | 529 | ||
| 7864 | 10년 전 | 583 | ||
| 7863 | 10년 전 | 575 | ||
| 7862 | 10년 전 | 543 | ||
| 7861 | 10년 전 | 708 | ||
| 7860 | 10년 전 | 689 | ||
| 7859 | 10년 전 | 459 | ||
| 7858 | 10년 전 | 775 | ||
| 7857 | 10년 전 | 1159 | ||
| 7856 | 10년 전 | 583 | ||
| 7855 | 10년 전 | 822 | ||
| 7854 | 10년 전 | 757 | ||
| 7853 | 10년 전 | 656 | ||
| 7852 | 10년 전 | 580 | ||
| 7851 | 10년 전 | 584 | ||
| 7850 | 10년 전 | 654 | ||
| 7849 | 10년 전 | 420 | ||
| 7848 | 10년 전 | 484 | ||
| 7847 | 10년 전 | 730 | ||
| 7846 | 10년 전 | 512 | ||
| 7845 | 10년 전 | 490 | ||
| 7844 | 10년 전 | 454 | ||
| 7843 | 10년 전 | 488 | ||
| 7842 | 10년 전 | 471 | ||
| 7841 | 10년 전 | 440 | ||
| 7840 | 10년 전 | 459 | ||
| 7839 | 10년 전 | 514 | ||
| 7838 | 10년 전 | 567 | ||
| 7837 | 10년 전 | 395 | ||
| 7836 | 10년 전 | 450 | ||
| 7835 | 10년 전 | 530 | ||
| 7834 |
|
10년 전 | 1230 | |
| 7833 | 10년 전 | 497 | ||
| 7832 | 10년 전 | 472 | ||
| 7831 | 10년 전 | 637 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기