스크롤 최신글 문의 정보
스크롤 최신글 문의본문
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 최신글 설정
$n_width = 320; // 들어갈 폭에 맞게 전광판 넓이 설정
?>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 최신글 설정
$n_width = 320; // 들어갈 폭에 맞게 전광판 넓이 설정
?>
<table width="380" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="33" height="31"><img src="<?=$latest_skin_path?>/img/board_title_left.gif" width="89" height="31"></td>
<td background="<?=$latest_skin_path?>/img/board_title_bg.gif" style='padding-top:3px;' width="325"> <marquee width='<?=$n_width?>' direction='left' scrollamount='1' scrolldelay=50 height=20 onmouseover='this.stop();' onmouseout='this.start();'>
<?
for ($i=0; $i<count($list); $i++) {
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][wr_2]}</strong><strong>{$list[$i][wr_name]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>[{$list[$i][wr_2]}/{$list[$i][wr_3]}]</font> <b><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][wr_name]}</b></font>";
echo "</a>";
echo " " . $list[$i][icon_new];
echo "<br>";
}
?>
</marquee></td>
<td width="22"><img src="<?=$latest_skin_path?>/img/board_title_right.gif" width="19" height="31"></td>
</tr>
</table>
<tr>
<td width="33" height="31"><img src="<?=$latest_skin_path?>/img/board_title_left.gif" width="89" height="31"></td>
<td background="<?=$latest_skin_path?>/img/board_title_bg.gif" style='padding-top:3px;' width="325"> <marquee width='<?=$n_width?>' direction='left' scrollamount='1' scrolldelay=50 height=20 onmouseover='this.stop();' onmouseout='this.start();'>
<?
for ($i=0; $i<count($list); $i++) {
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i][wr_2]}</strong><strong>{$list[$i][wr_name]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>[{$list[$i][wr_2]}/{$list[$i][wr_3]}]</font> <b><font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][wr_name]}</b></font>";
echo "</a>";
echo " " . $list[$i][icon_new];
echo "<br>";
}
?>
</marquee></td>
<td width="22"><img src="<?=$latest_skin_path?>/img/board_title_right.gif" width="19" height="31"></td>
</tr>
</table>
위소스에서 왼쪽으로 스크롤 되게했는데요..
최신글숫자를 2개이상할때 하나씩 나오는게아니고 위아래로 줄이늘어나네요...
그러니까 2줄이 동시에 왼쪽으로 이동합니다...
하나씩 스크롤되게 어떻게 하나요?
댓글 전체
<td>{$list[$i][wr_2]}</td>
테이블을 나눠보세요.
테이블을 나눠보세요.