이메일 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년 전 | 421 | ||
| 7929 | 9년 전 | 348 | ||
| 7928 | 9년 전 | 437 | ||
| 7927 | 9년 전 | 356 | ||
| 7926 | 9년 전 | 673 | ||
| 7925 | 9년 전 | 377 | ||
| 7924 | 9년 전 | 356 | ||
| 7923 | 9년 전 | 359 | ||
| 7922 | 9년 전 | 392 | ||
| 7921 | 9년 전 | 408 | ||
| 7920 | 9년 전 | 328 | ||
| 7919 | 9년 전 | 342 | ||
| 7918 | 9년 전 | 496 | ||
| 7917 | 9년 전 | 349 | ||
| 7916 | 9년 전 | 422 | ||
| 7915 | 9년 전 | 423 | ||
| 7914 | 9년 전 | 435 | ||
| 7913 | 9년 전 | 599 | ||
| 7912 | 9년 전 | 439 | ||
| 7911 | 9년 전 | 379 | ||
| 7910 | 9년 전 | 421 | ||
| 7909 | 9년 전 | 525 | ||
| 7908 | 9년 전 | 448 | ||
| 7907 | 9년 전 | 392 | ||
| 7906 | 9년 전 | 410 | ||
| 7905 | 9년 전 | 388 | ||
| 7904 | 9년 전 | 373 | ||
| 7903 | 9년 전 | 363 | ||
| 7902 | 9년 전 | 571 | ||
| 7901 |
|
9년 전 | 752 | |
| 7900 | 9년 전 | 611 | ||
| 7899 | 9년 전 | 405 | ||
| 7898 | 9년 전 | 405 | ||
| 7897 | 9년 전 | 364 | ||
| 7896 | 9년 전 | 371 | ||
| 7895 | 9년 전 | 482 | ||
| 7894 | 9년 전 | 409 | ||
| 7893 | 9년 전 | 365 | ||
| 7892 | 9년 전 | 413 | ||
| 7891 | 9년 전 | 781 | ||
| 7890 | 9년 전 | 1206 | ||
| 7889 | 9년 전 | 755 | ||
| 7888 |
limsy1987
|
9년 전 | 559 | |
| 7887 | 9년 전 | 577 | ||
| 7886 | 9년 전 | 467 | ||
| 7885 | 9년 전 | 428 | ||
| 7884 | 9년 전 | 428 | ||
| 7883 | 9년 전 | 426 | ||
| 7882 | 9년 전 | 480 | ||
| 7881 | 9년 전 | 458 | ||
| 7880 | 9년 전 | 595 | ||
| 7879 | 9년 전 | 482 | ||
| 7878 | 9년 전 | 1238 | ||
| 7877 | 9년 전 | 768 | ||
| 7876 | 9년 전 | 506 | ||
| 7875 | 9년 전 | 578 | ||
| 7874 |
|
9년 전 | 819 | |
| 7873 | 9년 전 | 530 | ||
| 7872 | 9년 전 | 693 | ||
| 7871 | 9년 전 | 496 | ||
| 7870 | 9년 전 | 625 | ||
| 7869 | 9년 전 | 443 | ||
| 7868 | 9년 전 | 472 | ||
| 7867 | 9년 전 | 453 | ||
| 7866 | 9년 전 | 516 | ||
| 7865 | 9년 전 | 466 | ||
| 7864 | 9년 전 | 531 | ||
| 7863 | 9년 전 | 527 | ||
| 7862 | 9년 전 | 479 | ||
| 7861 | 9년 전 | 662 | ||
| 7860 | 9년 전 | 636 | ||
| 7859 | 9년 전 | 428 | ||
| 7858 | 9년 전 | 715 | ||
| 7857 | 9년 전 | 1096 | ||
| 7856 | 9년 전 | 543 | ||
| 7855 | 9년 전 | 771 | ||
| 7854 | 9년 전 | 736 | ||
| 7853 | 9년 전 | 598 | ||
| 7852 | 9년 전 | 529 | ||
| 7851 | 9년 전 | 526 | ||
| 7850 | 9년 전 | 601 | ||
| 7849 | 9년 전 | 372 | ||
| 7848 | 9년 전 | 432 | ||
| 7847 | 9년 전 | 676 | ||
| 7846 | 9년 전 | 469 | ||
| 7845 | 9년 전 | 441 | ||
| 7844 | 9년 전 | 408 | ||
| 7843 | 9년 전 | 434 | ||
| 7842 | 9년 전 | 420 | ||
| 7841 | 9년 전 | 398 | ||
| 7840 | 9년 전 | 416 | ||
| 7839 | 9년 전 | 448 | ||
| 7838 | 9년 전 | 525 | ||
| 7837 | 9년 전 | 372 | ||
| 7836 | 9년 전 | 413 | ||
| 7835 | 9년 전 | 489 | ||
| 7834 |
|
9년 전 | 1203 | |
| 7833 | 9년 전 | 452 | ||
| 7832 | 9년 전 | 435 | ||
| 7831 | 9년 전 | 582 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기