답변 1개
채택된 답변
+20 포인트
11년 전
저는 나오던데... 제가 사용하는 소스 올려볼게요.
처음 상단 php구문에
</p><p>include_once(G5_LIB_PATH.'/thumbnail.lib.php');</p><p>$imgwidth = 100; //표시할 이미지의 가로사이즈</p><p>$imgheight = 50; //표시할 이미지의 세로사이즈 </p><p>
되어있고요.
썸네일 출력은
</p><p><?php</p><p>$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $imgwidth, $imgheight);</p><p>if($thumb['src']) {</p><p>$img_content = '<img class="img_left" src="'.$thumb['src'].'" alt="'.$list[$i]['subject'].'" width="'.$imgwidth.'" height="'.$imgheight.'">';</p><p>} else {</p><p>$img_content = '<span class="noimg">NO IMAGE</span>';</p><p>}</p><p>echo $img_content;</p><p>?> </p><p>
사용하고 있습니다.
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
쿠츠
11년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
가로 세로 값을 별도로 지정하니 잘 불러옵니다.
답변 감사드려요~