그누보드5 에 Daum 우편번호 찾기 API 연동 하기
관련파일 : skin/member/basic/register_form.skin.php
<a href="<?php echo G5_BBS_URL ?>/zip.php?frm_name=fregisterform&frm_zip1=mb_zip1&frm_zip2=mb_zip2&frm_addr1=mb_addr1&frm_addr2=mb_addr2&frm_addr3=mb_addr3&frm_jibeon=mb_addr_jibeon" id="reg_zip_find" class="btn_frmline win_zip_find" target="_blank">주소 검색</a><br>
를
<a href="javascript:openDaumPostcode();" id="reg_zip_find" class="btn_frmline">주소 검색</a><br>
로 변경.
이때 a 태그에 들어있던 win_zip_find 클래스를 삭제하는것이 포인트 입니다.
삭제를 안하면 기존 win_zip_find click 이벤트와 충돌이 납니다.
그리고 맨 하단에 아래 자바스크립트 코드를 추가합니다.
<script src="http://dmaps.daum.net/map_js_init/postcode.js"></script>
<script type="text/javascript">
<!--
function openDaumPostcode() {
new daum.Postcode({
oncomplete: function(data) {
document.getElementById('reg_mb_zip1').value = data.postcode1;
document.getElementById('reg_mb_zip2').value = data.postcode2;
document.getElementById('reg_mb_addr1').value = data.address;
document.getElementById('reg_mb_addr2').focus();
document.getElementById('reg_mb_addr3').value = data.addressEnglish;
}
}).open();
}
//-->
</script>
모바일은 아래 링크를 참조하세요.
댓글 1개
VeritasLuxMea
11년 전
감사합니다 !
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7130 | 11년 전 | 2301 | ||
| 7129 | 11년 전 | 708 | ||
| 7128 |
senseme
|
11년 전 | 1292 | |
| 7127 | 11년 전 | 1162 | ||
| 7126 | 11년 전 | 813 | ||
| 7125 | 11년 전 | 2943 | ||
| 7124 | 11년 전 | 1418 | ||
| 7123 |
잘살아보자
|
11년 전 | 1281 | |
| 7122 |
잘살아보자
|
11년 전 | 681 | |
| 7121 |
잘살아보자
|
11년 전 | 3027 | |
| 7120 |
잘살아보자
|
11년 전 | 2904 | |
| 7119 |
잘살아보자
|
11년 전 | 722 | |
| 7118 |
잘살아보자
|
11년 전 | 3425 | |
| 7117 |
잘살아보자
|
11년 전 | 848 | |
| 7116 | 11년 전 | 739 | ||
| 7115 | 11년 전 | 1026 | ||
| 7114 | 11년 전 | 836 | ||
| 7113 | 11년 전 | 652 | ||
| 7112 | 11년 전 | 1075 | ||
| 7111 | 11년 전 | 1795 | ||
| 7110 | 11년 전 | 1031 | ||
| 7109 |
버섯먹은나
|
11년 전 | 799 | |
| 7108 | 11년 전 | 629 | ||
| 7107 | 11년 전 | 2401 | ||
| 7106 | 11년 전 | 1950 | ||
| 7105 | 11년 전 | 2479 | ||
| 7104 | 11년 전 | 1423 | ||
| 7103 |
|
11년 전 | 2700 | |
| 7102 | 11년 전 | 3113 | ||
| 7101 | 11년 전 | 4436 | ||
| 7100 | 11년 전 | 5788 | ||
| 7099 | 11년 전 | 2131 | ||
| 7098 | 11년 전 | 1714 | ||
| 7097 | 11년 전 | 1448 | ||
| 7096 | 11년 전 | 1120 | ||
| 7095 |
잘살아보자
|
11년 전 | 851 | |
| 7094 |
잘살아보자
|
11년 전 | 1048 | |
| 7093 |
잘살아보자
|
11년 전 | 924 | |
| 7092 |
잘살아보자
|
11년 전 | 1407 | |
| 7091 |
잘살아보자
|
11년 전 | 2207 | |
| 7090 |
잘살아보자
|
11년 전 | 880 | |
| 7089 | 11년 전 | 1057 | ||
| 7088 | 11년 전 | 1706 | ||
| 7087 | 11년 전 | 1400 | ||
| 7086 | 11년 전 | 1303 | ||
| 7085 |
|
11년 전 | 1223 | |
| 7084 | 11년 전 | 1142 | ||
| 7083 | 11년 전 | 3494 | ||
| 7082 | 11년 전 | 1140 | ||
| 7081 | 11년 전 | 1730 | ||
| 7080 | 11년 전 | 2008 | ||
| 7079 | 11년 전 | 1322 | ||
| 7078 | 11년 전 | 1296 | ||
| 7077 | 11년 전 | 1292 | ||
| 7076 | 11년 전 | 760 | ||
| 7075 | 11년 전 | 1149 | ||
| 7074 |
네이비칼라
|
11년 전 | 1496 | |
| 7073 | 11년 전 | 1468 | ||
| 7072 |
|
11년 전 | 828 | |
| 7071 | 11년 전 | 1198 | ||
| 7070 | 11년 전 | 927 | ||
| 7069 | 11년 전 | 1696 | ||
| 7068 | 11년 전 | 1346 | ||
| 7067 |
TPSint
|
11년 전 | 732 | |
| 7066 | 11년 전 | 2147 | ||
| 7065 | 11년 전 | 6639 | ||
| 7064 | 11년 전 | 1288 | ||
| 7063 | 11년 전 | 1132 | ||
| 7062 | 11년 전 | 1065 | ||
| 7061 | 11년 전 | 913 | ||
| 7060 | 11년 전 | 1464 | ||
| 7059 | 11년 전 | 860 | ||
| 7058 |
EngineMan
|
11년 전 | 3399 | |
| 7057 | 11년 전 | 1243 | ||
| 7056 | 11년 전 | 1631 | ||
| 7055 | 11년 전 | 1008 | ||
| 7054 | 11년 전 | 2650 | ||
| 7053 |
네이비칼라
|
11년 전 | 1281 | |
| 7052 | 11년 전 | 2577 | ||
| 7051 | 11년 전 | 1935 | ||
| 7050 | 11년 전 | 2450 | ||
| 7049 | 11년 전 | 1397 | ||
| 7048 | 11년 전 | 2530 | ||
| 7047 | 11년 전 | 1350 | ||
| 7046 | 11년 전 | 1029 | ||
| 7045 | 11년 전 | 1057 | ||
| 7044 | 11년 전 | 5431 | ||
| 7043 | 11년 전 | 1225 | ||
| 7042 | 11년 전 | 781 | ||
| 7041 |
열라뽕똬이
|
11년 전 | 755 | |
| 7040 | 11년 전 | 1108 | ||
| 7039 | 11년 전 | 1461 | ||
| 7038 | 11년 전 | 1874 | ||
| 7037 | 11년 전 | 2172 | ||
| 7036 | 11년 전 | 1081 | ||
| 7035 | 11년 전 | 1401 | ||
| 7034 | 11년 전 | 1347 | ||
| 7033 |
열라뽕똬이
|
11년 전 | 994 | |
| 7032 | 11년 전 | 748 | ||
| 7031 | 11년 전 | 2177 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기