뷰페이지에서 썸네일 가로 갯수 변경 정보
뷰페이지에서 썸네일 가로 갯수 변경첨부파일
본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
뷰페이지에서 썸네일 오버시 큰 이미지가 변경하는 소스를 이용중인데요
2x설정갯수 이런식으로나오는데 가로갯수를 8개로 늘리고 싶은데 소스를 어디 손봐야 할지 모르겠네요
<table width="100%" cellpadding="0" cellspacing="0">
<?
for ($i=$rows*($page-1); $i<$rows*$page; $i++) {
if(!$file[$i]) break;
if($i%2==0) echo "<tr>";
?>
<td style="padding:3px" align="center">
<A href="#" class="innerborder"><img src="<?=$file[$i]?>" width="80" height="80" border="0" style="cursor:hand" onMouseOver="view_photo('<?=$file[$i]?>')"></a>
</td>
<?
if($i%2==1) echo "</tr>";
}
?>
</table>
if($i%2==0)
if($i%2==1)
여기 두군데를 8로 늘리면 될지 알았떠니 안되네요 ㅠㅠㅠ
소스 순서도 바꿔보고 질문과답변, 팁도 뒤져봤는데 해결이 안되서 올려봅니다
전체 소스 첨부합니다.
도와주세요!!
아래는 제가 보기에 중요한 부분만 올렸어요
전체 소스를 파일로 첨부했습니다~!
선언부분
<?
$total = count($file);
if(!$page) $page=1;
$rows = 16;
$total_page = ceil($total / $rows);
?>
큰 이미지 부분
<img src="<?=$file[$rows*($page-1)]?>" width="560" height="380" style="border:1px solid #d5d5d5" ><?}?>
최상단 선언부분
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//include_once("title_name.php");
$file = array();
$n=0;
for ($i=0; $i<count($view[file]); $i++) {
if(!$view[file][$i][file]) continue;
$file[$n] = $view[file][$i][path]."/".$view[file][$i][file];
$n++;
}
$popup_small = 500;
$popup_big = 1000;
?>
오류 주소 :
뷰페이지에서 썸네일 오버시 큰 이미지가 변경하는 소스를 이용중인데요
2x설정갯수 이런식으로나오는데 가로갯수를 8개로 늘리고 싶은데 소스를 어디 손봐야 할지 모르겠네요
<table width="100%" cellpadding="0" cellspacing="0">
<?
for ($i=$rows*($page-1); $i<$rows*$page; $i++) {
if(!$file[$i]) break;
if($i%2==0) echo "<tr>";
?>
<td style="padding:3px" align="center">
<A href="#" class="innerborder"><img src="<?=$file[$i]?>" width="80" height="80" border="0" style="cursor:hand" onMouseOver="view_photo('<?=$file[$i]?>')"></a>
</td>
<?
if($i%2==1) echo "</tr>";
}
?>
</table>
if($i%2==0)
if($i%2==1)
여기 두군데를 8로 늘리면 될지 알았떠니 안되네요 ㅠㅠㅠ
소스 순서도 바꿔보고 질문과답변, 팁도 뒤져봤는데 해결이 안되서 올려봅니다
전체 소스 첨부합니다.
도와주세요!!
아래는 제가 보기에 중요한 부분만 올렸어요
전체 소스를 파일로 첨부했습니다~!
선언부분
<?
$total = count($file);
if(!$page) $page=1;
$rows = 16;
$total_page = ceil($total / $rows);
?>
큰 이미지 부분
<img src="<?=$file[$rows*($page-1)]?>" width="560" height="380" style="border:1px solid #d5d5d5" ><?}?>
최상단 선언부분
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//include_once("title_name.php");
$file = array();
$n=0;
for ($i=0; $i<count($view[file]); $i++) {
if(!$view[file][$i][file]) continue;
$file[$n] = $view[file][$i][path]."/".$view[file][$i][file];
$n++;
}
$popup_small = 500;
$popup_big = 1000;
?>
댓글 전체
어떻게 안되시는지 알면 좋을텐데요
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<?
for ($i=$rows*($page-1); $i<$rows*$page; $i++) {
if(!$file[$i]) break;
if($i%8==0 && $i) echo "</tr><tr>";
?>
<td style="padding:3px" align="center">
<A href="#" class="innerborder"><img src="<?=$file[$i]?>" width="80" height="80" border="0" style="cursor:hand" onMouseOver="view_photo('<?=$file[$i]?>')"></a>
</td>
<?
}
while($i && ($i<$rows*$page)){echo "<td></td>"; $i++;}//나머지 td 정의
?>
</tr>
</table>
일단은 수정해 보았습니다
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<?
for ($i=$rows*($page-1); $i<$rows*$page; $i++) {
if(!$file[$i]) break;
if($i%8==0 && $i) echo "</tr><tr>";
?>
<td style="padding:3px" align="center">
<A href="#" class="innerborder"><img src="<?=$file[$i]?>" width="80" height="80" border="0" style="cursor:hand" onMouseOver="view_photo('<?=$file[$i]?>')"></a>
</td>
<?
}
while($i && ($i<$rows*$page)){echo "<td></td>"; $i++;}//나머지 td 정의
?>
</tr>
</table>
일단은 수정해 보았습니다
감사합니다. 잘 수정돠었어요 ㅠㅠ 정말 감사해요~!