이메일 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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 730 |
|
19년 전 | 2716 | |
| 729 |
그레이스웹
|
19년 전 | 3506 | |
| 728 |
|
19년 전 | 2676 | |
| 727 |
|
19년 전 | 2519 | |
| 726 |
|
19년 전 | 2334 | |
| 725 |
|
19년 전 | 2235 | |
| 724 |
|
19년 전 | 2129 | |
| 723 |
|
19년 전 | 4251 | |
| 722 |
|
19년 전 | 2667 | |
| 721 |
|
19년 전 | 2157 | |
| 720 |
|
19년 전 | 2256 | |
| 719 |
|
19년 전 | 2843 | |
| 718 |
|
19년 전 | 1956 | |
| 717 |
|
19년 전 | 3188 | |
| 716 |
|
19년 전 | 2747 | |
| 715 |
|
19년 전 | 2259 | |
| 714 |
|
19년 전 | 1809 | |
| 713 |
|
19년 전 | 2234 | |
| 712 |
|
19년 전 | 2005 | |
| 711 |
|
19년 전 | 1896 | |
| 710 |
|
19년 전 | 2461 | |
| 709 |
|
19년 전 | 2315 | |
| 708 |
|
19년 전 | 3880 | |
| 707 |
|
19년 전 | 3729 | |
| 706 |
|
19년 전 | 2232 | |
| 705 |
|
19년 전 | 3272 | |
| 704 |
|
19년 전 | 1948 | |
| 703 |
|
19년 전 | 2382 | |
| 702 |
|
19년 전 | 2272 | |
| 701 |
홀로남은자
|
19년 전 | 2340 | |
| 700 |
홀로남은자
|
19년 전 | 2174 | |
| 699 | 19년 전 | 2810 | ||
| 698 |
|
19년 전 | 2824 | |
| 697 |
|
19년 전 | 3166 | |
| 696 |
|
19년 전 | 3037 | |
| 695 |
|
19년 전 | 2702 | |
| 694 |
|
19년 전 | 2924 | |
| 693 |
|
19년 전 | 3175 | |
| 692 |
|
19년 전 | 2876 | |
| 691 |
|
19년 전 | 2615 | |
| 690 | 19년 전 | 2918 | ||
| 689 | 19년 전 | 4502 | ||
| 688 | 19년 전 | 2427 | ||
| 687 | 19년 전 | 2444 | ||
| 686 | 19년 전 | 3475 | ||
| 685 | 19년 전 | 3152 | ||
| 684 | 19년 전 | 2802 | ||
| 683 | 19년 전 | 2049 | ||
| 682 | 19년 전 | 1773 | ||
| 681 | 19년 전 | 2875 | ||
| 680 | 19년 전 | 1715 | ||
| 679 | 19년 전 | 2306 | ||
| 678 | 19년 전 | 3954 | ||
| 677 | 19년 전 | 3722 | ||
| 676 | 19년 전 | 3448 | ||
| 675 | 19년 전 | 3405 | ||
| 674 |
|
19년 전 | 1563 | |
| 673 |
|
19년 전 | 1936 | |
| 672 |
|
19년 전 | 1854 | |
| 671 | 19년 전 | 2522 | ||
| 670 | 19년 전 | 4616 | ||
| 669 |
|
19년 전 | 2757 | |
| 668 |
|
19년 전 | 1916 | |
| 667 |
|
19년 전 | 1929 | |
| 666 |
|
19년 전 | 1819 | |
| 665 |
|
19년 전 | 2555 | |
| 664 |
|
19년 전 | 8172 | |
| 663 |
|
19년 전 | 2723 | |
| 662 |
|
19년 전 | 2787 | |
| 661 |
|
19년 전 | 3041 | |
| 660 |
|
19년 전 | 2191 | |
| 659 |
|
19년 전 | 2206 | |
| 658 |
|
19년 전 | 2170 | |
| 657 |
|
19년 전 | 2066 | |
| 656 |
|
19년 전 | 2252 | |
| 655 |
|
19년 전 | 2512 | |
| 654 |
|
19년 전 | 3073 | |
| 653 | 19년 전 | 2328 | ||
| 652 | 19년 전 | 1907 | ||
| 651 |
|
19년 전 | 2828 | |
| 650 | 19년 전 | 4995 | ||
| 649 | 19년 전 | 3494 | ||
| 648 | 19년 전 | 3452 | ||
| 647 | 19년 전 | 2966 | ||
| 646 | 19년 전 | 2389 | ||
| 645 | 19년 전 | 1486 | ||
| 644 | 19년 전 | 3133 | ||
| 643 | 19년 전 | 2010 | ||
| 642 |
|
19년 전 | 5372 | |
| 641 | 19년 전 | 2430 | ||
| 640 | 19년 전 | 3427 | ||
| 639 | 19년 전 | 2852 | ||
| 638 | 19년 전 | 1760 | ||
| 637 | 19년 전 | 3875 | ||
| 636 | 19년 전 | 2414 | ||
| 635 | 19년 전 | 2303 | ||
| 634 |
|
19년 전 | 3022 | |
| 633 |
|
19년 전 | 3294 | |
| 632 | 19년 전 | 2495 | ||
| 631 | 19년 전 | 2256 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기