답변 2개
<script>
var win_write = function(href) {
var new_win = window.open(href, 'win_write', 'left=100,top=100,width=600, height=600, scrollbars=1');
new_win.focus();
}
$(function(){
$(".win_write").click(function() {
win_write(this.href);
return false;
});
});
</script>
게시글 보는 링크를 아래와 같이 변경해 보세요.
팝업창으로 띄우는 소스입니다.
테스트 해본건 아닙니다.
<a href="<?php echo 링크 ?>" target="_blank" class="win_write">게시글 보기</a>
예를 들어 버전 5.1.9의 경우 /skin/board/basic/list.skin.php 파일 108줄쯤에
<a href="<?php echo $list[$i]['href'] ?>" target="_blank" class="win_write">
<?php echo $list[$i]['subject'] ?>
<?php if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?php echo $list[$i]['comment_cnt']; ?><span class="sound_only">개</span><?php } ?>
</a>
답변을 작성하려면 로그인이 필요합니다.