롤링으로 돌아가는 공지스킨 말인데요 > 그누4 질문답변

그누4 질문답변

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

롤링으로 돌아가는 공지스킨 말인데요 정보

롤링으로 돌아가는 공지스킨 말인데요

본문


사하님의 홈피의
공지란을 보면 빙글빙글 돌아가죠~
http://extra.pe.kr/v1/

4개의 게시물이 노출되는 영역이지만
다음의 5번째 게시물부터 8번까지 공지영역에
노출되게끔 돌아가는데요~

소스다운받아 적용 다 했는데,
제껀 4개의 게시물만 제자리에서 계속돌뿐
5번째 게시물이 나오질 않고 있습니다.
(물론 공지로 추출되는 게시판 최근글 20개는 박아뒀는데도 말이죠;;;)

사하님의 첨부글로 문의사항은 사절이라 하셔서
일단 이곳에다 등록해보는데요 ;;

원소스는 http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=91153 
이곳에서 가져왔습니다.


아래는 저의
latest.skin.php 파일이구요~
원 소스에서 여백 및 배경색과 크기 조절 외에는 건드린거 없습니다~
그럼 도움좀 요청드릴깨요~ (__)

-----------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
  IMG {border: none;}
 .sh_latest { width:237; height:25; position: relative; margin-right:0px; }
 .sh_latest dl { float:left; clear:both; display:block; margin:0; padding: 1px 1px 1px 1px; }
 .sh_latest dt, dd { display:block; }
 .sh_latest dt { padding-top:1px; float:left; clear:left; font-size:9pt; color:#282828; font-weight: normal; }
 .sh_latest dd { padding-top:1px; width:1px; float:right; clear:right; text-align: right; }

 .sh_latest_top { width:237; position: relative; vertical-align:absmiddle; height:20px; text-align: left; background-image:url('<?=$latest_skin_path?>/img/header_19.gif');}
 .sh_latest_content { width:10%; position: relative; padding: 10px; text-align: left; border-bottom: 1px dotted #ffffff; border-top: 0; }
 .sh_latest_top * { vertical-align:middle; display:inline; }
</style>

 <script language="JavaScript" src="<?=$latest_skin_path?>/img/textscroll.js"></script> 
<div class="sh_latest">
 <dl class="sh_latest_top">
  <dt>
    <a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><span style="color:#ffffff ;"><?=$board[bo_subject]?></span> </a>
  </dt>
  <dd>
   <a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/more.gif" width="45px" height="17px" border='0'></a>
  </dd>
 </dl>
</div>
<table width=100% cellpadding=0 cellspacing=0>

<tr>
    <td height="100%">
 <div style="position:static;margin: 0px 1px 10px 0px; padding-left:0px;"> <!--최근게시물 내용 /상단여백/날짜우측간격/아래여백/우측간격/ 설정-->
 <span id='rts1'></span>

 <script type='text/javascript'>
 //고정

var action_state="top"; // 고정값
var spacing_gab1=9; // ★ 첫라인 상단 여백
var spacing_gab2=6; // ★ 이후라인 상단 여백
var width_area=237; // ★ 레이어 가로 폭
var line_ea=10; // ★ 보이는 목록 개수
var loopWait=600;  // ★ 줄 전부 바뀌고 대기하는 시간
var rollingWait=15;   // ★ 줄 바뀌고 아랫줄 바뀌는 시간차
var rts1=new RealTimeSearch(action_state,spacing_gab1,spacing_gab2,width_area,1);

 

var a1=new rts1.Admin('rts1',{count : line_ea,loopWait : loopWait,rollingWait : rollingWait},[
<? for ($i=0; $i<count($list); $i++) {
 $ca = $i+1;
 $icon_new =  $list[$i][icon_new];
 ?>
{className : '<?=$ca?>',href : '<?=$list[$i][href]?>',title : '<img src=<?=$latest_skin_path?>/img/<?=$i+1?>.gif>  <?=$list[$i][subject]?> <?//=$icon_new?>',date : '<?=$list[$i]['datetime2']?>'},
 <? } ?> 
 
 ]); 

function top_1() {
 a1.setTmpValue([ 

  <? for ($i=0; $i<count($list); $i++) {
 $ca = $i+1;
 $icon_new =  $list[$i][icon_new];
 ?>

{className : '<?=$ca?>',href : '<?=$list[$i][href]?>',title : '<?=$list[$i][href]?>',title : '<img src=<?=$latest_skin_path?>/img/<?=$i+1?>.gif>  <?=$list[$i][subject]?> <?//=$icon_new?>',date : '<?=$list[$i]['datetime2']?>'},
  <? } ?> 
 ]);
 
// function down_1() {
// a1.setTmpValue([  
// {className : '$ca',href : '$list[$i]['href']',title : '<img src=<?=$latest_skin_path?>/img/latest_icon.gif align=absmiddle>  {$list[$i]['subject']} $list[$i]['icon_new']',date : '03.28'},]);
 
 }
top_1();

 

</script>   
</div>        
 </td></tr></table>


<? if (count($list) == 0) { ?><table width=100% cellpadding=0 cellspacing=0><tr><td colspan=4 align=center height=50><font color=#dcdcdc>게시물이 없습니다.</a></td></tr></table><? } ?>





 

  • 복사

댓글 전체

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