썸네일 클릭시 이미지 크게 띄우기 하려고 하는데 잘 안됩니다. 채택완료
latest.skin.php
--------------------------
for ($i=0; $i //$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $imgwidth , $imgheight); $n_thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $n_thumb_width, $n_thumb_height);
$n_noimg = "$latest_skin_url/img/noimg.gif";
if($n_thumb['src']) {
$img_content = $n_thumb['src'];
} else {
$img_content = $n_thumb_width;
}
$href = G5_BBS_URL."/view_image.php?bo_table=newgallery&fn=".$n_thumb['src2'] ;
?>
leftrightslide[=$i;?>] = " ------------------------------------------ $n_thumb['src2'] 은 해당 갤러리테이블의 data/file 폴더 안의 이미지 네임입니다. http://kb.eox.kr/bbs/board.php?bo_table=table02&wr_id=87">http://kb.eox.kr/bbs/board.php?bo_table=table02&wr_id=87 이것 처럼 사진 클릭시 원본 파일을 새창으로 띄우려고 하는데요 http://www.eco-edu.co.kr/index_test.php">http://www.eco-edu.co.kr/index_test.php 새창으로 안열리고 새탭으로 열립니다. 그리고 새창 사이즈를 이미지 크기로 맞추고 싶습니다. 도움 부탁드립니다. ";
}
?>
답변 1개
페이지 하단에 아래 코드를 넣어보세요
</p><p><script></p><p><span style="color: rgb(34, 34, 34); font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; line-height: normal; white-space: pre; background-color: rgb(255, 255, 255);">$("a.view_image").click(function() {
window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
return false;
});</span> </p><p><span style="color: rgb(34, 34, 34); font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; line-height: normal; white-space: pre; background-color: rgb(255, 255, 255);"></script></span></p><p>
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인