묻고답하기

아래의 소스는 회원가입 소스입니다.  

우편번호 찾기 누르면 조그만한 윈도우창 뜨지요..

xx동 치면 주소가 쭈루룩~ 나오잖습니까. 그 주소 클릭하면 클릭했던 주소가

폼으로 자동으로 이동 해지는거 알죠? ( 일반적인 회원가입 생각하시면됨)

그런 기능이 되는 일반적인 회원가입 asp페이지 소스입니다......

문제가 뭐냐... 제가 말한 폼으로 자동으로 주소가 이동 하게 해주는 것이

아래 보시면 알겠지만 onClick(i)  자바소스에 의해서 이동 되는겁니다..

그런데!!!!  

<form></form>    ← 이 문장! 딱!! 이 문장입니다..다른거 없어요

아래의 소스 어느부분이라도  저 폼문장만 넣으면

onClick(i)    ← 요 자바 소스가 먹히질 않네요... 왜그러죠???? 정말입니다.. 몇일 해결못하고 이러고

있습니다..  대체 왜 그런거죠?? 정말 문제가 간단한데... 해결안되고 있어요 ㅠ.ㅜ


★★★★★★★★★★★★★ 소스 시작 ★★★★★★★★★


<html>
<head>
<link href="include/stylesheet.css" rel="stylesheet" type="text/css">

<!-- 아래의 자바소스는 클릭으로 인해 폼으로 자동으로 주소가 이동되는 소스 -->

<script language="javascript">

function onClick(i) {

        zipcode = document.forms[i].h_zip1.value;
        fom = opener.document.forms[0];
        tmp1 = zipcode.substring(0,3);
        tmp2 = zipcode.substring(4,7);
  
        fom.m_zipcode1.value = tmp1;
        fom.m_zipcode2.value = tmp2;
    
        fom.m_address1.value = document.forms[i].h_zip2.value;
    
        parent.window.close();
        parent.fom.m_address2.focus();
}
</script>



</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<form name="haacasd">
</form>
<form name="theForm" method="post" action="join_ok.asp">

<input type=hidden name="idcheck" value="">

<div align="left">
<table width="750" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="509" valign="top" align="center" width="750">
      <table width="700" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#E6D1AC" height="1"></td>
        </tr>
        <tr>
          <td height="30" bgcolor="#F8F1E4"><b>무료회원가입</b></td>
        </tr>
        <tr>
          <td bgcolor="#E6D1AC" height="1"></td>
        </tr>
      </table>
      <table width="580" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
        </tr>
        <tr>
          <td bgcolor="#999999"> </td>
        </tr>
      </table>
      <table width="600" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="85" bgcolor="#CCCCCC" valign="top">
            <table width="600" border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td bgcolor="#FFFFFF" height="80" align="right">
                  <table width="588" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="467" height="90">커플나라는 연인들을 위한 국내 최고의 커뮤니티 사이트로
                          회원으로 가입하시면<br>
                        다양한 인터넷 서비스를 이용하실 수 있습니다. <br>
                        <br>
                        <b>회원등록은 무료이며, 등록 즉시 서비스를 이용하실 수 있습니다. </b><br>
                        아래의 이용 약관을 반드시 읽고 동의후 회원가입을 주십시오.</td>
                        <td width="121" align="right" valign="bottom" height="90"><img src="images/bg_pencil.gif" width="110" height="73"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF" height="140" align="center">
                  <textarea name="textfield" cols="70" rows="8" class=input></textarea>
                </td>
              </tr>
              <tr>
                <td bgcolor="#FFFFFF" height="34" align="center">
                  <table width="500" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td> </td>
                    </tr>
                  </table>
                  <table width="500" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="3" colspan="2" bgcolor="#666666"></td>
                    </tr>
                    <tr>
                      <td height="27" colspan="2"><font color="#FF6633">▒ 기본정보입력</font></td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right">실명 </td>
                      <td height="27" width="373">  
                        <input type="text" name="m_name" size="15" maxlength="15" class=input style = "ime-mode:active">                                                
                      </td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right">주민등록번호 </td>
                                                    <td height="27" width="373">
                                                        <p> 
                          <input type="text" name="m_juminno1" size="8" maxlength="7" class=input onKeyPress="onlyNumber();" onKeyUp="Shift();">
                        -
                          <input type="password" name="m_juminno2" size="8" maxlength="7" class=input onKeyPress="onlyNumber();" onKeyUp="juminno_check();">
                        <font color="#CC9659">* 타인의 주민등록번호 도용금지</font></p>
</td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right">아이디 </td>
                                                    <td height="27" width="373">  
                                                               
                                                <input type="text" name="m_id" onblur = "id_value(this)" maxlength="10" size="15" class=input onKeyPress="Special_Check();" style = "ime-mode:inactive">
                                                
                                                
                                                
                          <a href="javascript:Id_Check();"><img src="images/id_but.gif" width="74" height="24" align="absmiddle" border="0"></a>
                          영문+숫자 5~10자</td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right"> </td>
                                                    <td height="27" width="373"><font color="#CC9659">  * 특수문자(- % $ ^ 등) 사용불가,</font></td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right">비밀번호 </td>
                      <td height="27" width="373">  
                          <input type="password" name="m_pwd1" size="15" class="input" value="" onKeyPress="Special_Check();">
                        영문, 영문+숫자 6-8자 </td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right"> </td>
                      <td height="27" width="373">  
                          <input type="password" name="m_pwd2" size="15" maxlength="15" class=input onKeyPress="Special_Check();">
                        한번 더 입력해주세요. </td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right">전화번호 </td>
                                                    <td height="27" width="373">  
                          <input type="text" name="m_tel" size="20" maxlength="20" class=input>
                        예) 02-123-1234</td>
                    </tr>
                    <tr>
                                                    <td width="127" height="27" align="right">                                                        <p>핸드폰</p>
</td>
                                                    <td width="373" height="27">                                                        <p>  <input type="text" name="m_hp" size="20" maxlength="20" class=input>
예) 010-123-1234</p>
</td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right">이메일주소 </td>
                      <td height="27" width="373">  
                        <input type="text" name="m_email" size="30" maxlength="30" class=input>
                        <font color="#FF0000">※ Daum 제외 </font></td>
                    </tr>
                    <tr>
                      <td height="27" width="127" align="right">커플나라소식메일링 </td>
                      <td height="27" width="373">  수신하겠습니까?
                        <input type="radio" name="m_mailing" value="Y" checked>
                        예
                        <input type="radio" name="m_mailing" value="N">
                        아니오</td>
                    </tr>
                    <tr>
                        <td height="27" width="127" align="right">우편번호 </td>
                      <td height="27" width="373">  
                        <input type="text" name="m_zipcode1" size="4" maxlength="4" class=input onClick="javascript:sub('zip.asp', this);" readonly>
                        -
                        <input type="text" name="m_zipcode2" size="4" maxlength="4" class=input onClick="javascript:sub('zip.asp', this);" readonly>
                          <a href="javascript:sub('zip.asp', this);"><img src="images/but_num.gif" width="84" height="24" align="absmiddle" border="0"></a>
                        </td>
                    </tr>
                    <tr>
                        <td height="27" width="127" align="right">주소 </td>
                      <td height="27" width="373">  
                        <input type="text" name="m_address1" size="45" maxlength="45" class=input readonly>
                      </td>
                    </tr>
                    <tr>
                        <td height="27" width="127" align="right">나머지주소 </td>
                      <td height="27" width="373">  
                        <input type="text" name="m_address2" size="45" maxlength="45" class=input style = "ime-mode:active">
                      </td>
                    </tr>
                    <tr bgcolor="#666666">
                      <td height="2" colspan="2"></td>
                    </tr>
                    <tr>
                      <td height="27" width="127"> </td>
                      <td height="27" width="373">
                          <input type="checkbox" name="agree" value="Y" checked>
                        약관에 동의하며 회원가입을 하겠습니다.</td>
                    </tr>
                    <tr align="center">
                        <td height="40" colspan="2"><a href="javascript:mem_join();"><img src="images/but_ok.gif" width="63" height="21" border="0"></a> <a href="javascript:history.back();"><img src="images/but_cancle.gif" width="63" height="21" border="0"></a></td>
                    </tr>
                  </table>
                  <table width="500" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td> </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>  <table width="580" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#999999"> </td>
        </tr>
        <tr>
          <td> </td>
        </tr>
        <tr>
          <td> </td>
        </tr>
      </table>
    </td>
  </tr>
</table></div>

</form></p>
</body>

</html>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
채민욱 Apache 설치가 안됩니다...  
박군의그녀 자바스크립트 [3] 2007.08.10
이민구 정말 문제는 단순하고 간단한데..해결이 안되는 문제..  
한진웅 회원가입 폼 같은건 아이프레임으로 불러 오는건가요?? [1] 2007.08.10
이상훈 제로보드 게시판 인쿠르드시 웹페이지 경로 변경 수정하는 법좀... [1] 2007.08.10
이청호 phpMyAdmin으로 복구중 일부 화일이 제거가 안됩니다...  
아이퀘스트 공개자료실에 프로그램을 올리려고 하는데 용량이 20메가로 제한이 걸려있더군요 [1] 2007.08.10
은섭 다음 에러 메세지를 고칠려면~~~ 부탁 드립니다 [1] 2007.08.10
▩†슈터†▩ HTML 표 관련 질문 입니다. [4] 2007.08.10
윤동희 플레쉬에서...  
이광일 [Flash] 플래쉬 갤러리에서 소스수정 질문입니다...  
momoforu 링크된 사진 크기 변경 관련 질문 [1] 2007.08.10
베티 주소고정한 main페이지에 아이프레임이 있을 경우 [1] 2007.08.10
종달이 제가 제공받고있는 서버가 이상합니다..  
지키리 움직이는 레이어가 게시판에서는 먹질 않습니다. [1] 2007.08.10
park embed명령으로 플래시(swf)불러올때...  
홍현기 제로보드 서버 오류 좀 봐주세요..  
임승모 SOAP 살려주세요... T_T  
이강우 플래시 액션스크립트 기초적인질문인데요..랜덤값줄때에..  
정승영 PHP를 공부하고 있는데요. [1] 2007.08.10
응가응가 이미지 링크시 이미지에 테두리가 생깁니다. [3] 2007.08.10
선희 마우스로 드래그해서 태그적용되게  
노형철 마우스오버 한 레이어의 위치가.. 게시판이 들어간 페이지에서는 다른곳에 뜹니다.  
▩†슈터†▩ 홈페이지 보안관련이라고나 할까요.. 질문입니당, [1] 2007.08.10
노형철 마우스오버 한 레이어의 위치가.. 게시판이 들어간 페이지에서는 다른곳에 뜹니다.  
워니 "Haru Communication에서 배포한..... [1] 2007.08.10
제이크 자바스크립트 메뉴가 게시판의 글쓰기 또는 글읽기를 선택했을때 작동되지 않아요ㅜㅜ [4] 2007.08.10
김미영 write.php오류  
제이크 include를 이용한 index.html 페이지를 만드는데 경로 지정 질문이요.. [1] 2007.08.10
박군의그녀 마우스오버와 클래스 [2] 2007.08.10