선생님여러분....썸네일 질문 드립니다...제발 ㅠㅠ
본문
겔러리 게시판에 사용되는 썸네일 이미지를 index 에서 불러와서 사용 하고자 합니다.
이리저리 뜯어보고 고쳐봐도 index 에서 썸네일 이미지를 제대로 불러오지를 못하고 있습니다.
<code>
<li onClick="location.href='!!!!!'">
<div class="room_cont">
<img src="/mobile/shop/img/pic3.jpg" />
<p class="room_txt"><span>사진3</span></p>
</div>
</li>
</code>
이런식으로 사용 할려고 하는데요
img src 에 들어갈 부분이 썸네일을 가져와서 적용 시킬려고 합니다.
어떤식으로 썸네일을 가져 와야 하나요 ????
꼭 꼭 답변 좀 부탁드립니다....ㅠㅠ
답변 1
<?php
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
?>
<li onClick="location.href='!!!!!'">
<div class="room_cont">
<?
$thumb = get_list_thumbnail(bo_table, wr_id, thumb_width, thumb_height);
if($thumb['src'])
echo '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
?>
<p class="room_txt"><span>사진3</span></p>
</div>
</li>
bo_table, wr_id, thumb_width, thumb_height 는 알맞은 값 넣으세요.
!-->
답변을 작성하시기 전에 로그인 해주세요.