이메일 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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 630 | 19년 전 | 2330 | ||
| 629 |
|
19년 전 | 1997 | |
| 628 |
|
19년 전 | 3090 | |
| 627 |
|
19년 전 | 2008 | |
| 626 |
|
19년 전 | 2045 | |
| 625 |
|
19년 전 | 1698 | |
| 624 |
|
19년 전 | 2207 | |
| 623 | 19년 전 | 2184 | ||
| 622 |
|
19년 전 | 2483 | |
| 621 |
|
19년 전 | 2874 | |
| 620 |
|
19년 전 | 2380 | |
| 619 | 19년 전 | 2445 | ||
| 618 | 19년 전 | 3498 | ||
| 617 |
|
19년 전 | 3212 | |
| 616 |
|
19년 전 | 3200 | |
| 615 |
|
19년 전 | 3011 | |
| 614 |
|
19년 전 | 2024 | |
| 613 |
|
19년 전 | 2340 | |
| 612 |
|
19년 전 | 2223 | |
| 611 |
|
19년 전 | 2058 | |
| 610 |
|
19년 전 | 2499 | |
| 609 |
|
19년 전 | 2406 | |
| 608 |
|
19년 전 | 2798 | |
| 607 | 19년 전 | 2173 | ||
| 606 | 19년 전 | 3499 | ||
| 605 | 19년 전 | 1965 | ||
| 604 | 19년 전 | 2569 | ||
| 603 | 19년 전 | 1596 | ||
| 602 |
|
19년 전 | 2827 | |
| 601 | 19년 전 | 3065 | ||
| 600 |
|
19년 전 | 2152 | |
| 599 | 19년 전 | 1987 | ||
| 598 | 19년 전 | 2464 | ||
| 597 | 19년 전 | 2375 | ||
| 596 |
|
19년 전 | 3065 | |
| 595 |
|
19년 전 | 6743 | |
| 594 | 19년 전 | 2700 | ||
| 593 | 19년 전 | 3175 | ||
| 592 |
|
19년 전 | 3074 | |
| 591 |
|
19년 전 | 1915 | |
| 590 | 19년 전 | 3353 | ||
| 589 | 19년 전 | 2182 | ||
| 588 |
|
19년 전 | 2691 | |
| 587 | 19년 전 | 2336 | ||
| 586 |
|
19년 전 | 4350 | |
| 585 | 19년 전 | 2467 | ||
| 584 | 19년 전 | 2735 | ||
| 583 |
|
19년 전 | 3501 | |
| 582 |
|
19년 전 | 3705 | |
| 581 |
|
19년 전 | 3229 | |
| 580 | 19년 전 | 2467 | ||
| 579 | 19년 전 | 3040 | ||
| 578 | 19년 전 | 3899 | ||
| 577 | 19년 전 | 3777 | ||
| 576 | 19년 전 | 1712 | ||
| 575 |
|
19년 전 | 2189 | |
| 574 |
|
19년 전 | 5394 | |
| 573 | 19년 전 | 6692 | ||
| 572 | 19년 전 | 2546 | ||
| 571 | 19년 전 | 2100 | ||
| 570 | 19년 전 | 2593 | ||
| 569 | 19년 전 | 3255 | ||
| 568 | 19년 전 | 3497 | ||
| 567 | 19년 전 | 2973 | ||
| 566 | 19년 전 | 2584 | ||
| 565 |
|
19년 전 | 4693 | |
| 564 |
|
19년 전 | 6698 | |
| 563 |
|
19년 전 | 4968 | |
| 562 |
|
19년 전 | 5931 | |
| 561 |
|
19년 전 | 2669 | |
| 560 |
|
19년 전 | 2485 | |
| 559 |
|
19년 전 | 2197 | |
| 558 |
|
19년 전 | 2283 | |
| 557 | 19년 전 | 4576 | ||
| 556 |
|
19년 전 | 4642 | |
| 555 | 19년 전 | 2487 | ||
| 554 | 19년 전 | 2160 | ||
| 553 | 19년 전 | 2493 | ||
| 552 |
|
19년 전 | 3131 | |
| 551 | 19년 전 | 2921 | ||
| 550 |
|
19년 전 | 1883 | |
| 549 |
|
19년 전 | 1941 | |
| 548 |
|
19년 전 | 3134 | |
| 547 |
|
19년 전 | 2351 | |
| 546 |
|
19년 전 | 3609 | |
| 545 |
|
19년 전 | 2533 | |
| 544 |
|
19년 전 | 1839 | |
| 543 |
|
19년 전 | 2440 | |
| 542 |
|
19년 전 | 1706 | |
| 541 |
|
19년 전 | 1390 | |
| 540 |
|
19년 전 | 1520 | |
| 539 |
|
19년 전 | 1789 | |
| 538 |
|
19년 전 | 1565 | |
| 537 |
|
19년 전 | 1764 | |
| 536 |
|
19년 전 | 1549 | |
| 535 |
|
19년 전 | 1940 | |
| 534 |
|
19년 전 | 1832 | |
| 533 |
|
19년 전 | 1428 | |
| 532 |
|
19년 전 | 1431 | |
| 531 |
|
19년 전 | 1344 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기