이메일 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년 전 | 2734 | |
| 729 |
그레이스웹
|
19년 전 | 3529 | |
| 728 |
|
19년 전 | 2712 | |
| 727 |
|
19년 전 | 2546 | |
| 726 |
|
19년 전 | 2365 | |
| 725 |
|
19년 전 | 2271 | |
| 724 |
|
19년 전 | 2156 | |
| 723 |
|
19년 전 | 4272 | |
| 722 |
|
19년 전 | 2700 | |
| 721 |
|
19년 전 | 2193 | |
| 720 |
|
19년 전 | 2290 | |
| 719 |
|
19년 전 | 2866 | |
| 718 |
|
19년 전 | 1977 | |
| 717 |
|
19년 전 | 3205 | |
| 716 |
|
19년 전 | 2768 | |
| 715 |
|
19년 전 | 2292 | |
| 714 |
|
19년 전 | 1847 | |
| 713 |
|
19년 전 | 2261 | |
| 712 |
|
19년 전 | 2023 | |
| 711 |
|
19년 전 | 1922 | |
| 710 |
|
19년 전 | 2493 | |
| 709 |
|
19년 전 | 2351 | |
| 708 |
|
19년 전 | 3904 | |
| 707 |
|
19년 전 | 3751 | |
| 706 |
|
19년 전 | 2257 | |
| 705 |
|
19년 전 | 3332 | |
| 704 |
|
19년 전 | 2004 | |
| 703 |
|
19년 전 | 2404 | |
| 702 |
|
19년 전 | 2298 | |
| 701 |
홀로남은자
|
19년 전 | 2362 | |
| 700 |
홀로남은자
|
19년 전 | 2189 | |
| 699 | 19년 전 | 2831 | ||
| 698 |
|
19년 전 | 2848 | |
| 697 |
|
19년 전 | 3189 | |
| 696 |
|
19년 전 | 3058 | |
| 695 |
|
19년 전 | 2730 | |
| 694 |
|
19년 전 | 2958 | |
| 693 |
|
19년 전 | 3209 | |
| 692 |
|
19년 전 | 2894 | |
| 691 |
|
19년 전 | 2645 | |
| 690 | 19년 전 | 2944 | ||
| 689 | 19년 전 | 4524 | ||
| 688 | 19년 전 | 2450 | ||
| 687 | 19년 전 | 2473 | ||
| 686 | 19년 전 | 3503 | ||
| 685 | 19년 전 | 3183 | ||
| 684 | 19년 전 | 2858 | ||
| 683 | 19년 전 | 2079 | ||
| 682 | 19년 전 | 1786 | ||
| 681 | 19년 전 | 2885 | ||
| 680 | 19년 전 | 1738 | ||
| 679 | 19년 전 | 2322 | ||
| 678 | 19년 전 | 3973 | ||
| 677 | 19년 전 | 3762 | ||
| 676 | 19년 전 | 3484 | ||
| 675 | 19년 전 | 3421 | ||
| 674 |
|
19년 전 | 1580 | |
| 673 |
|
19년 전 | 1942 | |
| 672 |
|
19년 전 | 1872 | |
| 671 | 19년 전 | 2537 | ||
| 670 | 19년 전 | 4654 | ||
| 669 |
|
19년 전 | 2783 | |
| 668 |
|
19년 전 | 1936 | |
| 667 |
|
19년 전 | 1955 | |
| 666 |
|
19년 전 | 1860 | |
| 665 |
|
19년 전 | 2595 | |
| 664 |
|
19년 전 | 8197 | |
| 663 |
|
19년 전 | 2748 | |
| 662 |
|
19년 전 | 2804 | |
| 661 |
|
19년 전 | 3062 | |
| 660 |
|
19년 전 | 2235 | |
| 659 |
|
19년 전 | 2255 | |
| 658 |
|
19년 전 | 2191 | |
| 657 |
|
19년 전 | 2096 | |
| 656 |
|
19년 전 | 2291 | |
| 655 |
|
19년 전 | 2547 | |
| 654 |
|
19년 전 | 3090 | |
| 653 | 19년 전 | 2342 | ||
| 652 | 19년 전 | 1928 | ||
| 651 |
|
19년 전 | 2869 | |
| 650 | 19년 전 | 5031 | ||
| 649 | 19년 전 | 3526 | ||
| 648 | 19년 전 | 3483 | ||
| 647 | 19년 전 | 2988 | ||
| 646 | 19년 전 | 2423 | ||
| 645 | 19년 전 | 1511 | ||
| 644 | 19년 전 | 3150 | ||
| 643 | 19년 전 | 2027 | ||
| 642 |
|
19년 전 | 5408 | |
| 641 | 19년 전 | 2446 | ||
| 640 | 19년 전 | 3442 | ||
| 639 | 19년 전 | 2883 | ||
| 638 | 19년 전 | 1771 | ||
| 637 | 19년 전 | 3885 | ||
| 636 | 19년 전 | 2437 | ||
| 635 | 19년 전 | 2326 | ||
| 634 |
|
19년 전 | 3029 | |
| 633 |
|
19년 전 | 3313 | |
| 632 | 19년 전 | 2522 | ||
| 631 | 19년 전 | 2281 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기