갤러리 최신글 롤링되는것에 대한 질문....여러개의 이미지를 보여주고싶을때는? 정보
갤러리 최신글 롤링되는것에 대한 질문....여러개의 이미지를 보여주고싶을때는?본문
자료실의 최근게시물] 옆으로 움직이는 최근갤러리를 사용해서 옆으로 흐르는
최근갤러리를 구현하려고하는데요..
갤러리는 자료실의 한 라인에 하나이상의 이미지를 등록해서 보여줄 수 있는
게시판을 사용하고 있습니다.
그런데 문제점은 위에것으로 최근갤러리를 적용하면
각 라인의 하나만의 그림만 나온다는것이죠..
글이 세개 있다면 맨처음 이미지 하나씩 3개만 롤링되고있구요~
제가 원하는것은 최근 등록된 것 중 8개 이미지가 등록되었다면 그것을 보여주고 싶습니다.
고수님의 조언 부탁드려요..
<-- 메인롤링되는 소스 -->
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 8; // 한행당 몇개씩?
$image_width = 65; // 이미지 폭
$image_height = 62; // 이미지 높이
$t_width = 364; // 전광판 넓이
?>
<style>
img {border="0"
}
.box1 {
border: 1px solid;
border-color: #B8B8B8;
}
</style>
<table width="370" align="center" border="0" cellspacing="0" cellpadding="0">
<tR>
<td>
<marquee width='<?=$t_width?>' direction='left' scrollamount='8' scrolldelay=100 onmouseover='this.stop();' onmouseout='this.start();'>
<table width="100%" border="0" align="right" cellspacing="0" cellpadding="0">
<tr><td height="10" colspan="5"></td></tr>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<td align="center" style='padding-right:7px;'>
<?
echo $list[$i][icon_reply] . " ";
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 8; // 한행당 몇개씩?
$image_width = 65; // 이미지 폭
$image_height = 62; // 이미지 높이
$t_width = 364; // 전광판 넓이
?>
<style>
img {border="0"
}
.box1 {
border: 1px solid;
border-color: #B8B8B8;
}
</style>
<table width="370" align="center" border="0" cellspacing="0" cellpadding="0">
<tR>
<td>
<marquee width='<?=$t_width?>' direction='left' scrollamount='8' scrolldelay=100 onmouseover='this.stop();' onmouseout='this.start();'>
<table width="100%" border="0" align="right" cellspacing="0" cellpadding="0">
<tr><td height="10" colspan="5"></td></tr>
<tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<td align="center" style='padding-right:7px;'>
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table'>";
$image = urlencode($view[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<img src='$g4[path]/data/file/$bo_table/$image' width='$image_width' height='$image_height' border='0'alt='{$list[$i][subject]}' style='border:1 solid #777777;'>\n";
} else
echo "</a>";
echo "<br>";
echo "<font color='#BCCFCD'>▒</font> <font style=color:#393939;'>{$list[$i][subject]}</font> <font color='#BCCFCD'>▒</font> ";
echo " " . $list[$i][icon_new];
?>
</td>
<? } ?>
$image = urlencode($view[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<img src='$g4[path]/data/file/$bo_table/$image' width='$image_width' height='$image_height' border='0'alt='{$list[$i][subject]}' style='border:1 solid #777777;'>\n";
} else
echo "</a>";
echo "<br>";
echo "<font color='#BCCFCD'>▒</font> <font style=color:#393939;'>{$list[$i][subject]}</font> <font color='#BCCFCD'>▒</font> ";
echo " " . $list[$i][icon_new];
?>
</td>
<? } ?>
<? if (count($list) == 0) { echo "<td colspan=$mod align=center>게시물이 없습니다.</td>"; } ?>
</tr>
<tr><td height="7" colspan="5"></td></tr>
<tr><td height="1" colspan="5" bgcolor="#F2F2F2"></td></tr>
</table>
</td>
</tr>
</table>
</marquee>
</tr>
<tr><td height="7" colspan="5"></td></tr>
<tr><td height="1" colspan="5" bgcolor="#F2F2F2"></td></tr>
</table>
</td>
</tr>
</table>
</marquee>
댓글 전체
utf-8인가요? ^^
ㅡㅡ;