목진철님의 엘피스빌더에 사용된 스크롤배너를 가로로 출력하고 싶어요. > 그누4 질문답변

그누4 질문답변

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

목진철님의 엘피스빌더에 사용된 스크롤배너를 가로로 출력하고 싶어요. 정보

목진철님의 엘피스빌더에 사용된 스크롤배너를 가로로 출력하고 싶어요.

본문

너무 마음에 드는데 위로 스크롤 되더군요.

가로로 흐르도록 하고 싶은데 도와주세요~^^
질답에 찾아봐도 없더군요..
혹 이런거 올리면 안되는건가 걱정이 되네요.
안된다 하심 바로 삭제하겠습니다.

원본 링크
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=13139&sca=&sfl=mb_id%2C1&stx=elpis21&page=4

latest_skin.php 파일입니다.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script language="javascript">
    var roll_height_s = 60;
    var total_area_s = 0;
    var wait_flag_s = true;

    var bMouseOver_s = 1;
    var roll_speed_s = 1;
    var waitingtime_s = 1500; //스피드
    var s_tmp_s = 0;
    var s_amount_s = 60;
    var roll_text_s = new Array();
    var startPanel_s = 0;
    var n_panel_s = 0;
    var i_s = 0;

    function start_roll_s()
    {
        i_s = 0;
        for (i_s in roll_text_s)
            n_panel_s++;

        n_panel_s = n_panel_s -1 ;
        startPanel_s = Math.round(Math.random()*n_panel_s);
        if(startPanel_s == 0)
        {
            i_s = 0;
            for (i_s in roll_text_s)
                insert_area_s(total_area_s, total_area_s++); // area 삽입
        }
        else if(startPanel_s == n_panel_s)
        {
            insert_area_s(startPanel_s, total_area_s);
            total_area_s++;
            for (i_s=0; i_s<startPanel_s; i_s++)
            {
                insert_area_s(i_s, total_area_s); // area 삽입
                total_area_s++;
            }
        }
        else if((startPanel_s > 0) || (startPanel_s < n_panel_s))
        {
            insert_area_s(startPanel_s, total_area_s);
            total_area_s++;
            for (i_s=startPanel_s+1; i_s<=n_panel_s; i_s++)
            {
                insert_area_s(i_s, total_area_s); // area 삽입
                total_area_s++;
            }
            for (i_s=0; i_s<startPanel_s; i_s++)
            {
                insert_area_s(i_s, total_area_s); // area 삽입
                total_area_s++;
            }
        }
        if ( navigator.appName == "Microsoft Internet Explorer" )
        {
            if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
            return ;
        }
        window.setTimeout("rolling_s()",waitingtime_s);
    }

    function rolling_s()
    {
        if (bMouseOver_s && wait_flag_s)
        {
            for (i_s=0;i_s<total_area_s;i_s++){
                tmp_s = document.getElementById('scroll_area_s'+i_s).style;
                tmp_s.left = parseInt(tmp_s.left)-roll_speed_s;
                if (parseInt(tmp_s.left) <= -roll_height_s){
                    tmp_s.left = roll_height_s*(total_area_s-1);
                }
                if (s_tmp_s++ > (s_amount_s-1)*roll_text_s.length){
                    wait_flag_s=false;
                    window.setTimeout("wait_flag_s=true;s_tmp_s=0;",waitingtime_s);
                }
            }
        }
        window.setTimeout("rolling_s()", 1);
    }

    function insert_area_s(idx_s, n_s)
    {
        document.write('<div style="left: 0px; width: 100%; position: absolute; top: '+(roll_height_s*n_s)+'px" id="scroll_area_s'+n_s+'">\n'+roll_text_s[idx_s]+'\n</div>\n');
    }

<?
$java_script = "";
for ($i=0; $i<count($list); $i++) {
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
$ooo='<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100%><table width=100%  cellpadding=0 cellspacing=0 border=0><tr><td align=center><a href='.$list[$i][wr_1].'  target='.$list[$i][wr_2].'><img src=\"'."$g4[path]/data/file/$bo_table/$image".'\" width=\"135\" border=0></a></td></tr></table></td></tr></table>';
$java_script .= "roll_text_s[$i]='$ooo'\n";
}
echo $java_script;
?>
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%">
<div style="center: 0px; width: 1000px; position: relative; top: 0px; height: 46px; overflow:hidden;" onMouseover="bMouseOver_s=0" onMouseout="bMouseOver_s=1" id="scroll_image_s">
      <script>
        var no_script_flag_s = false ;
        if ( navigator.appName == "Microsoft Internet Explorer" )
        {
            if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
            {
                document.write ( roll_text_s[0] ) ;
                no_script_flag_s = true ;
            }
        }
        if ( no_script_flag_s == false )
            start_roll_s();
    </script>
    </div>
</td>
</tr>
</table>
  • 복사

댓글 전체

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