묻고답하기

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

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

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 남기남
oops 분류가 이게맞는지 모르겟네요..^^;;  
김홍석 노프레임을 나모로 작성중에 head.html에 문제가 있는데요 [1] 2007.08.10
김관석 select 박스에서 입체효과 없애기 [2] 2007.08.10
K.Y.W 홈페이지 메뉴버튼 만들 때 좋은 폰트 추천좀 해주세요! [4] 2007.08.10
채의수 음악감상실을 모뎀 사용자 들을라면 음질을...  
카ol 스크롤바를 오른쪽에서 왼쪽으로 옴기려면 어떻게해야해요??? [1] 2007.08.10
밥동자 IIS FTP 계정 추가 질문입니다.  
푸른솔 홈페이지만들기 [3] 2007.08.10
장기형 프레임을 나누어 쓸때 로그인이 적용이 되질 않습니다. [2] 2007.08.10
▒윤지니 모드설치후 warning오류  
stylebiz 페이지 내용을 암호화 시키는 자바스크립트가... [2] 2007.08.10
이영준 그라이데이션에 대한 질문입니다.  
송은지 링크된곳 클릭해서 새창띄우기 관련 질문; [1] 2007.08.10
김성국 ftp접속시 public_html 폴더로.. [3] 2007.08.10
박희찬 [엄청난!!]아악!! 미치겠다!! 미니돌요! [4] 2007.08.10
임현아 방명록에"글을 제대로 쓰시기 바랍니다"라는 문구만 뜹니다.. [2] 2007.08.10
심종희 게시판은 어떻게 다는거예요?  
김태우 글쓰기폼의 사이트링크에 음악경로 입력하면 배경음악 나오게... [2] 2007.08.10
최우재 IE 한영전환 안될때 [1] 2007.08.10
장호영 진자 초보적인 질문 시안에 관하여.. [1] 2007.08.10