아래의 소스에서
{$list[$i]['wr_subject']}
부분에
<?=cut_str($list[$i][wr_subject],50,'...')?> 이걸 적용해야 되는데
에러가 납니다.
이걸 적용해서 쓸수 있도록 좀 알려주세요
[code]
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 최신글 설정
$n_width = 320; // 들어갈 폭에 맞게 전광판 넓이 설정
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div style="width:320px; height:20px; overflow: hidden;">
<marquee width='<?=$n_width?>' direction='up' scrollamount='1' scrolldelay=70 height=20 onmouseover='this.stop();' onmouseout='this.start();'>
<?
for ($i=0; $i<count($list); $i++) {
echo "<a href='{$list[$i][href]}'>";
echo "<font style='font-family:돋움; line-height:140%; font-size:9pt; color:#6A6A6A; word-spacing: -0.1em;'>{$list[$i]['wr_subject']}</font>";
echo "</a>";
echo "<br>";
}
?>
</marquee>
</div></td>
</tr>
</table>
[/code]
{$list[$i]['wr_subject']}
부분에
<?=cut_str($list[$i][wr_subject],50,'...')?> 이걸 적용해야 되는데
에러가 납니다.
이걸 적용해서 쓸수 있도록 좀 알려주세요
[code]
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 최신글 설정
$n_width = 320; // 들어갈 폭에 맞게 전광판 넓이 설정
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div style="width:320px; height:20px; overflow: hidden;">
<marquee width='<?=$n_width?>' direction='up' scrollamount='1' scrolldelay=70 height=20 onmouseover='this.stop();' onmouseout='this.start();'>
<?
for ($i=0; $i<count($list); $i++) {
echo "<a href='{$list[$i][href]}'>";
echo "<font style='font-family:돋움; line-height:140%; font-size:9pt; color:#6A6A6A; word-spacing: -0.1em;'>{$list[$i]['wr_subject']}</font>";
echo "</a>";
echo "<br>";
}
?>
</marquee>
</div></td>
</tr>
</table>
[/code]
댓글 2개
<?
for ($i=0; $i<count($list); $i++) {
$content = cut_str($list[$i][wr_subject],50,'...');
echo "<a href='{$list[$i][href]}'>";
echo "<font style='font-family:돋움; line-height:140%; font-size:9pt; color:#6A6A6A; word-spacing: -0.1em;'>$content</font>";
echo "</a>";
echo "<br>";
}
?>
for ($i=0; $i<count($list); $i++) {
$content = cut_str($list[$i][wr_subject],50,'...');
echo "<a href='{$list[$i][href]}'>";
echo "<font style='font-family:돋움; line-height:140%; font-size:9pt; color:#6A6A6A; word-spacing: -0.1em;'>$content</font>";
echo "</a>";
echo "<br>";
}
?>
게시글 목록
| 번호 | 제목 |
|---|---|
| 284044 | |
| 284041 | |
| 284040 | |
| 284034 | |
| 284033 | |
| 284029 | |
| 284024 | |
| 284015 | |
| 284011 | |
| 284010 | |
| 284009 | |
| 283998 | |
| 283992 | |
| 283989 | |
| 283984 | |
| 283983 | |
| 283981 | |
| 283976 | |
| 283974 | |
| 283966 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기