전광판 direction='left' 시.................
전광판에서 마퀴 속성을 direction='left' 로 주게되면 오른쪽에서 왼쪽으로 흐르지 않습니까?
근데 그게 문제가 아닙니다..
문제는 만약에 제가 5개를 뽑아온다고 한다면.. 그 5개가 줄줄이 나오는게아니라
한꺼번에 나온다는거죠..
정상정인예 )) <- 내용1 <- 내용 2 <- 내용 3 <-
현재 시궁창 )) <- 내용1
<- 내용2
<_ 내용3
...............
소스 올려드립니다
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 최신글 설정
$n_width = 350; // 들어갈 폭에 맞게 전광판 넓이 설정
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="29" height="31"></td>
<td style='padding-top:3px;'> </td>
<td style='padding-top:3px;'>
<marquee width='<?=$n_width?>' direction='left' scrollamount='1' scrolldelay='150' 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:10pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:10pt; color:#ffffff;'>{$list[$i][subject]}</font>";
echo "</a>";
echo " " . $list[$i][icon_new];
echo "<br>";
}
?>
</marquee>
</td>
<td width="19"></td>
</tr>
</table>
근데 그게 문제가 아닙니다..
문제는 만약에 제가 5개를 뽑아온다고 한다면.. 그 5개가 줄줄이 나오는게아니라
한꺼번에 나온다는거죠..
정상정인예 )) <- 내용1 <- 내용 2 <- 내용 3 <-
현재 시궁창 )) <- 내용1
<- 내용2
<_ 내용3
...............
소스 올려드립니다
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
// 최신글 설정
$n_width = 350; // 들어갈 폭에 맞게 전광판 넓이 설정
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="29" height="31"></td>
<td style='padding-top:3px;'> </td>
<td style='padding-top:3px;'>
<marquee width='<?=$n_width?>' direction='left' scrollamount='1' scrolldelay='150' 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:10pt; color:#2C88B9;'><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:10pt; color:#ffffff;'>{$list[$i][subject]}</font>";
echo "</a>";
echo " " . $list[$i][icon_new];
echo "<br>";
}
?>
</marquee>
</td>
<td width="19"></td>
</tr>
</table>
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
글쓴이의 이름도 보여주게 하고싶습니다... 방법 설명부탁 ;ㅁ;
subject 앞에 marquee 태그를 옮기시면
한줄씩 될겁니다.
이부분을
echo "<marquee width='$n_width' direction='left' scrollamount='1' scrolldelay='150' height=20 onmouseover='this.stop();' onmouseout='this.start();'><font style='font-family:돋움; font-size:10pt; color:#ffffff;'><strong>{$list[$i][subject]}</strong></font></marquee>";
이렇게 바꿔줘보세요~