최신게시물 배너소스인데 무한반복으로 수정하려고 합니다...(흰색여백없이) > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최신게시물 배너소스인데 무한반복으로 수정하려고 합니다...(흰색여백없이) 정보

최신게시물 배너소스인데 무한반복으로 수정하려고 합니다...(흰색여백없이)

본문

marquee 부분대신에 자바소스로 대체하고 싶은데  수정해주시면 감사하겠습니다...^^;
배너가 왼쪽으로 스크롤되는 소스인데 여백부분이 보이고 다시 진행하거든요..
여백이 보이지 않고 끊임없이 왼쪽으로 배너들이 이동되도록 하고 싶습니다...
 
 
--------------------------------------------------------
 

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$mod = 4;   // 한행당 몇개씩?
$image_width  = 120; // 이미지 폭
$image_height = 55; // 이미지 높이
$t_width = 318; // 전광판 넓이
?>
<style>
img {border="0"
}
.box1 {
 border: 1px solid;
 border-color:  #B8B8B8;
}
</style>
<table width="318" align="center" border="0" cellspacing="0" cellpadding="0">
 <tR>
  <td>
<marquee width='<?=$t_width?>' direction='left' scrollamount='5' scrolldelay=100 onmouseover='this.stop();' onmouseout='this.start();'>
<table width="100%" border="0"  align="right" cellspacing="0" cellpadding="0">
  <tr><td height="10" colspan="5"></td></tr>
  <tr>
  <? for ($i=0; $i<count($list); $i++) { ?>
    <td align="center" style='padding-right:7px;'>
  <?
        echo $list[$i][icon_reply] . " ";
  echo "<a href='{$list[$i][wr_link1]}' target='_blank'>";
             $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'alt='{$list[$i][subject]}'  style='border:1 solid #777777;'>\n";
             } else
        echo "</a>";
        echo "<br>";
        echo "";
       
        ?>
  </td>
  <? } ?>
  <? if (count($list) == 0) { echo "<td colspan=$mod align=center>게시물이 없습니다.</td>"; } ?>
  </tr>
  <tr><td height="7" colspan="5"></td></tr>
 
</table>
</td>
</tr>
</table>
 </marquee>
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로