전광판 direction='left' 시................. 정보
전광판 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>
댓글 전체
추가적인 질문을하자면...
글쓴이의 이름도 보여주게 하고싶습니다... 방법 설명부탁 ;ㅁ;
글쓴이의 이름도 보여주게 하고싶습니다... 방법 설명부탁 ;ㅁ;

marquee 태그가 전체를 감싸고 있으니 그런거죠..
subject 앞에 marquee 태그를 옮기시면
한줄씩 될겁니다.
subject 앞에 marquee 태그를 옮기시면
한줄씩 될겁니다.
이해가 잘안되네용..;; [죄송죄송] 조금더 깊게 설명해주실수 있으신가요?

echo "<font style='font-family:돋움; font-size:10pt; color:#ffffff;'>{$list[$i][subject]}</font>";
이부분을
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>";
이렇게 바꿔줘보세요~
이부분을
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>";
이렇게 바꿔줘보세요~