미채택 완료

새창으로 띄우는 방법좀 알려주세요~

2014-03-20 (목) 13:25:53 4,430
<? switch($m3_cron[field]) {
      case "wr_link1_hit":
       $link = "<a href='{$list[$i][link_href][1]}' target='_blank'> {$list[$i][subject]}</a>";
       break;
      case "wr_link2_hit":
       $link = "<a href='{$list[$i][link_href][2]}' target='_blank'> {$list[$i][subject]}</a>";
       break;
 
 
이렇게 되어있는데요 누르면 새창으로 뜨는 방법을 알고 싶습니다~
부탁 드립니다
|

답변 1개 / 댓글 2개

$link = "<a href='#' OnClick=\"window.open('{$list[$i][link_href][2]}', 'pop', 'width=800,height=550,scrollbars=1');\"> {$list[$i][subject]}</a>";

답변에 대한 댓글 2개

왜 안먹히죠..ㅜ.ㅜ 그대로 같은 창에서 그냥뜨네요..ㅜ.ㅜ
$link = "<a href='#' onClick=\"window.open($list[$i][link_href][2], 'pop', 'width=800,height=550,scrollbars=1');\"> {$list[$i][subject]}</a>";

이렇게 한번 해보세요..........전 되는데 이상하군요.....

그래도 안되면 전체 소스 올리세요......

답변을 작성하려면 로그인이 필요합니다.