<? 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;
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개
2014-03-20 (목) 13:54:31
$link = "<a href='#' OnClick=\"window.open('{$list[$i][link_href][2]}', 'pop', 'width=800,height=550,scrollbars=1');\"> {$list[$i][subject]}</a>";
답변에 대한 댓글 2개
2014-03-20 (목) 14:07:10
$link = "<a href='#' onClick=\"window.open($list[$i][link_href][2], 'pop', 'width=800,height=550,scrollbars=1');\"> {$list[$i][subject]}</a>";
이렇게 한번 해보세요..........전 되는데 이상하군요.....
그래도 안되면 전체 소스 올리세요......
이렇게 한번 해보세요..........전 되는데 이상하군요.....
그래도 안되면 전체 소스 올리세요......
답변을 작성하려면 로그인이 필요합니다.