타겟 설정 좀 도아주세요. 채택완료
여행아
8년 전
조회 1,815
새창이 뜨는데요.
어느 부분에 target="_parent" 넣어줘야 할까요?
그리고 박스가 작게 나오는데
좀 크게 나오게 할 수 있을까요?

</p><p><?php</p><p>if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가</p><p>
</p><p>// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨</p><p>add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 1);</p><p>?></p><p>
</p><p><script></p><p>jQuery(document).ready(function(){</p><p> </p><p> var select = $("select#color");</p><p> </p><p> select.change(function(){</p><p> var select_name = $(this).children("option:selected").text();</p><p> $(this).siblings("label").text(select_name);</p><p> });</p><p>});</p><p></script></p><p>
</p><p><!-- <?php echo $bo_subject; ?> 최신글 시작 { --></p><p><div id="select_box"></p><p>
</p><p><select id="color" title="인증업체 선택" onchange="if(this.value) window.open(this.value);"></p><p><option selected="selected" value=''>인증업체 선택</option></p><p><?php for ($i=0; $i<count($list); $i++) {</p><p>echo "<option value='{$list[$i]['wr_link1']}'>{$list[$i]['subject']}</option>";</p><p>} ?></p><p></select></p><p></div></p><p><!-- } <?php echo $bo_subject; ?> 최신글 끝 --></p><p><span style="font-size: 14.6667px;">
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
채택된 답변
+20 포인트
8년 전
select#color { width:200px; line-height:35px; height:35px; border:1px solid #ddd }
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
여행아
8년 전
댓글을 작성하려면 로그인이 필요합니다.
8년 전
위에서 작성하신 부분의
</p><p>
</p><table style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; font-size: 14.004px; color: rgb(72, 72, 72); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; border-collapse: collapse !important;"><tbody style="margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important;"><tr style="margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important;"><td class="content" style="margin: 0px !important; padding: 0px 0px 0px 0.5em !important; border-width: 0px 0px 0px 3px !important; border-top-style: initial !important; border-right-style: initial !important; border-bottom-style: initial !important; border-left-style: solid !important; border-top-color: initial !important; border-right-color: initial !important; border-bottom-color: initial !important; border-left-color: rgb(108, 226, 108) !important; border-image: initial !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; vertical-align: top !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; font-size: 1em !important; color: rgb(0, 0, 0) !important;"><p><code class="plain" style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;"><select id=</code><code class="string" style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; color: blue !important;">"color"</code> <code class="plain" style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;">title=</code><code class="string" style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; color: blue !important;">"인증업체 선택"</code> <code class="plain" style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;">onchange=</code><code class="string" style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important; color: blue !important;">"if(this.value) window.open(this.value);"</code><code class="plain" style="font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 1em !important; margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; line-height: 1.8em !important;">></code></p><p>
영역에서
onchange 영역을 다시 작성하세요
함수로 만들어 처리하는방식으로 설명을 드리면
Onchange="f_open(this.value);"
와 같이 처리를 하시고
function f_open(val){
if (val) {
window.open(url, target, [option]);
}
}
하시면 됩니다.
https://www.w3schools.com/jsref/met_win_open.asp">https://www.w3schools.com/jsref/met_win_open.asp
를 참고해보세요
target 을 처리하는 방식중에는 form 을 사용하는 방식도 있습니다.
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
여행아
8년 전
답변감사합니다. (__)
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
답변 감사합니다. (__)