장주현

update choice

...@@ -91,10 +91,19 @@ ...@@ -91,10 +91,19 @@
91 91
92 <script> 92 <script>
93 function translateprocess(){ 93 function translateprocess(){
94 - <p> 우편번호: ㄴㄴ</p> 94 + var rawaddress = sample3_address.value;
95 - <p> 주소: ㄴㄴ</p> 95 + var rawdetailAddress = sample3_detailAddress.value;
96 - <p> 상세주소: ㄴㄴ</p> 96 + var rawextraAddress = sample3_extraAddress.value;
97 - } 97 +
98 + var rawsplitaddress = rawaddress.split(" ");
99 +
100 +
101 +
98 102
103 + var text = "country/Region : Korea, Republic of" + "<br>Full name : 영문이름" + "<br>Street address : " + rawaddress + "<br>Street address : " + rawdetailAddress + rawextraAddress + "<br>City : " + rawsplitaddress[0] + "<br>State/ Province/ Region :" + rawsplitaddress[1] + "<br>Zip Code : " + sample3_postcode.value + "<br>Phone number : (+82)본인의 전화번호";
104 + document.getElementById("englishaddress").innerHTML = text;
105 +
106 + }
107 +</script>
99 108
100 -</script>
...\ No newline at end of file ...\ No newline at end of file
109 +<div id="englishaddress">---<br></div>
...\ No newline at end of file ...\ No newline at end of file
......