최근글 스크롤 질문(급) 정보
최근글 스크롤 질문(급)관련링크
http://www.hicsing.com/
121회 연결
본문
메인화면(실시간호재브핑)에 이미지와 제목, 내용이 있는 최근글을 5개가 스크롤되게 해야하는데요....
관련글을 찾아봐도 잘 모르겠습니다.ㅠ.ㅠ
latest.skin.php 원본 소스 입니다.
<?
$image_height = 79; // 높이
$image_width = 110; // 너비
?>
<link href="/g4/skin/board/sisun_board/style.css" rel="stylesheet" type="text/css">
<table width=353 border=0 align=center cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0){?>
<tr valign=top>
<td width="120" align="center" valign="middle"><?
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$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 style='border-color:EFEFEF;' align=center>"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/noimage.jpg' width='$image_width' height='$image_height' border=0 style='border-color:EFEFEF;' align=center>";
echo "</a>";
?></td>
<td><a href='<?=$list[$i][href]?>'> </a>
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="100%" class="main_brief"><? echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<span class='news_tab'>{$list[$i][subject]}</span>";
else
echo "<span class='news_tab'>{$list[$i][subject]}</span>";
echo "</a>";
$image_height = 79; // 높이
$image_width = 110; // 너비
?>
<link href="/g4/skin/board/sisun_board/style.css" rel="stylesheet" type="text/css">
<table width=353 border=0 align=center cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i==0){?>
<tr valign=top>
<td width="120" align="center" valign="middle"><?
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$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 style='border-color:EFEFEF;' align=center>"; // 이미지크기
} else
echo "<img src='$latest_skin_path/img/noimage.jpg' width='$image_width' height='$image_height' border=0 style='border-color:EFEFEF;' align=center>";
echo "</a>";
?></td>
<td><a href='<?=$list[$i][href]?>'> </a>
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="100%" class="main_brief"><? echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<span class='news_tab'>{$list[$i][subject]}</span>";
else
echo "<span class='news_tab'>{$list[$i][subject]}</span>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class=festival_title>{$list[$i][comment_cnt]}</span></a>";
echo " <a href=\"{$list[$i][comment_href]}\"><span class=festival_title>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
?></td>
</tr>
</table>
<a href='<?=$list[$i][href]?>'> </a>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="100%"><a href='<?=$list[$i][href]?>'>
<?
$wr_content = preg_replace("/<(.*?)\>/","",$list[$i][wr_content]);
$wr_content = preg_replace("/ /","",$wr_content);
$wr_content = cut_str(get_text($wr_content),148); //숫자는 최근글에 뽑을 본문길이
echo $wr_content;
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
?></td>
</tr>
</table>
<a href='<?=$list[$i][href]?>'> </a>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="100%"><a href='<?=$list[$i][href]?>'>
<?
$wr_content = preg_replace("/<(.*?)\>/","",$list[$i][wr_content]);
$wr_content = preg_replace("/ /","",$wr_content);
$wr_content = cut_str(get_text($wr_content),148); //숫자는 최근글에 뽑을 본문길이
echo $wr_content;
?>
</a></td>
</tr>
</table></td>
<tr>
<td colspan=2></td>
</tr>
<? }else{?>
<tr>
<td colspan=2> <img src="/g4/skin/latest/column/img/blutt.gif" width="11" height="11" vspace="5" align="absmiddle">
<?
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:#FF5400;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "{$list[$i][subject]}";
echo "</a>";
</a></td>
</tr>
</table></td>
<tr>
<td colspan=2></td>
</tr>
<? }else{?>
<tr>
<td colspan=2> <img src="/g4/skin/latest/column/img/blutt.gif" width="11" height="11" vspace="5" align="absmiddle">
<?
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:#FF5400;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "{$list[$i][subject]}";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span></a>";
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span></a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
?></td>
</tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=4 align=center>자료가 없습니다.</td></tr>"; } ?>
</table>
</tr>
<? } ?>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=4 align=center>자료가 없습니다.</td></tr>"; } ?>
</table>
쉽게 설명해주세요...^^ 관련글 링크 대신에요...^^
댓글 전체
질문은 뭔가요?
정확히 무슨문제인지 소스만 올려주시면 알수가 없네요.
설치한 해당화면이라도 보여주시면 훨씬 빠른답변을 받을 수 있습니다.
정확히 무슨문제인지 소스만 올려주시면 알수가 없네요.
설치한 해당화면이라도 보여주시면 훨씬 빠른답변을 받을 수 있습니다.
설명이 짧았습니다.
http://www.hicsing.com/에 보시면 메인 상단에 실시간 브리핑이라는 최근글이 있는데 이걸 롤링시키려 합니다. ㅠ.ㅠ
사진을 올리려 했는데 수정이 안돼네요...
http://www.hicsing.com/에 보시면 메인 상단에 실시간 브리핑이라는 최근글이 있는데 이걸 롤링시키려 합니다. ㅠ.ㅠ
사진을 올리려 했는데 수정이 안돼네요...