전광판 코드수정해주세요... 정보
전광판 코드수정해주세요...본문
한개그룹의 최신글을 스크롤하려고 하는데
이하 코드대로 하면 좌측으로 흐르면서 가장 최근의 글 하나만 스크롤 됩니다.
어떻게 하면 한개그룹의 여러개 최신글을 위로 스크롤 할수 있을까요? 수정부탁드립니다...
____________________________________________________________
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 최신글 설정
$t_width = 300; // 전광판 넓이
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 최신글 설정
$t_width = 300; // 전광판 넓이
?>
<style>
A:link {text-decoration:none; color:#5B5B5B}
A:visited {text-decoration:none; color:#5B5B5B}
A:active {text-decoration:none; color:#5B5B5B}
A:hover {text-decoration:none; color:#BC0000}
A:hover {color:BC0000;text-decoration:underline}
<style>
A:link {text-decoration:none; color:#5B5B5B}
A:visited {text-decoration:none; color:#5B5B5B}
A:active {text-decoration:none; color:#5B5B5B}
A:hover {text-decoration:none; color:#BC0000}
A:hover {color:BC0000;text-decoration:underline}
body, table, tr, td, select,div,input,form,textarea {font-family:돋움;font-size:9pt;color:#5B5B5B;}
select,input,form {font-family:돋움; font-size:9pt; color:#353535; line-height:150%}
</style>
select,input,form {font-family:돋움; font-size:9pt; color:#353535; line-height:150%}
</style>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 전광판 최신글 시작 -->
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="<?=$latest_skin_path?>/img/left.gif" width="100" height="30"></td>
<td background="<?=$latest_skin_path?>/img/main_bg.gif" width="350" height="30">
<marquee behavior=up>
<?
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][subject]}</strong></font>";
else
// * echo "<img src=$latest_skin_path/img/dia_green.gif border=0 vspace=0 hspace=0> ";
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]} </font>";
echo "</a>";
}
?></marquee>
</td>
<td background="<?=$latest_skin_path?>/img/right.gif" width="50" height="30"><div align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>" onFocus="this.blur()"> </a> <p align="left"> <a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>" onFocus="this.blur()">more</a></p>
</div></td>
</tr>
</table>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="<?=$latest_skin_path?>/img/left.gif" width="100" height="30"></td>
<td background="<?=$latest_skin_path?>/img/main_bg.gif" width="350" height="30">
<marquee behavior=up>
<?
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][subject]}</strong></font>";
else
// * echo "<img src=$latest_skin_path/img/dia_green.gif border=0 vspace=0 hspace=0> ";
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i][subject]} </font>";
echo "</a>";
}
?></marquee>
</td>
<td background="<?=$latest_skin_path?>/img/right.gif" width="50" height="30"><div align="center"><a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>" onFocus="this.blur()"> </a> <p align="left"> <a href="<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>" onFocus="this.blur()">more</a></p>
</div></td>
</tr>
</table>
댓글 전체
불러오는 코드에서 갯수를 여러개로 해보세요~
<?=latest("스킨명", "게시판아이디", 출력라인수, 출력글자수);?>
http://www.sir.co.kr/gnuboard/g4_faq.php#03
<?=latest("스킨명", "게시판아이디", 출력라인수, 출력글자수);?>
http://www.sir.co.kr/gnuboard/g4_faq.php#03