묻고답하기

스킨 자료실에 있는 go_ccm님의 스크롤되는 최근 갤러리 스킨입니다.

<a href='$_zb_url/view.php?id=$id&no=$data[no]'><img src=$_zb_url".$data[file_name1]." width=120 height=110 border=1 style='border-color:#999999'></td></tr><tr><td height=20 align=center><a href='$_zb_url/view.php?id=$id&no=$data[no]'>".$subject."</a></td></tr></table>";
이부분이 링크부분입니다..

클릭하면.. 게시판 해당 글을 글만보여주는 것이 아니고..
게시판 전체에서..그부분의 내용을 읽혀지게..
해당 내용만 추출하는것이 아니구요...

자바로 새창뜨는거 써도.."대신 '이거 써야하고..아예 php오류떠서 그림도 안나오고..
'요놈으로 바꾸면..그림뜨는데..누르면 오류나면서 안열리네요..

소스좀 알려주세요..ㅠㅠ

=========================================================================================
<?
$_zb_url = "zboard/"; //자신의 제로보드폴더명
$_zb_path = "zboard/"; //자신의 제로보드 폴더명
// include $_zb_path."outlogin.php";

$id = "port"; //불러낼 게시판 이름
$callcnt = 10; // 불러낼 갯수
?>
<style>
BODY,TABLE,TR,TD,SELECT,input,DIV,form,TEXTAREA,center,option,pre,blockquote {font-size:9pt; font-family:굴림; color:#666666; line-height:170%;}

A:link    {color:666666;text-decoration:none;}
A:visited {color:666666;text-decoration:none;}
A:active  {color:666666;text-decoration:none;}
A:hover  {color:gray;text-decoration:none;}
</style>

<script language="javascript">

//Math.random()

        var scroll_content=new Array();
                var content_count = 0;
        
    // 스크롤 내용
    <?
    $result = @mysql_query("select * from zetyx_board_$id where is_secret!='1' order by no desc limit $callcnt"); // 최근에 게시된 게시물 중에서 10개만 뽑아와서 출력함
    $result_category = @mysql_query("select * from zetyx_board_category_$id");
    $i = 0;$j = 0;
        $arraynum = @mysql_num_rows($result);
        echo( "content_count=$arraynum ;" );
    while($data=@mysql_fetch_array($result))        {
        $subject = cut_str(stripslashes($data[subject]),10)."</font></b>";
        if($i==0) {
            echo "scroll_content[".$j."]="";
        }
        echo "<table cellpadding=0 cellspacing=0><tr><td height=102><a href='$_zb_url/view.php?id=$id&no=$data[no]'><img src=$_zb_url".$data[file_name1]." width=120 height=110 border=1 style='border-color:#999999'></td></tr><tr><td height=20 align=center><a href='$_zb_url/view.php?id=$id&no=$data[no]'>".$subject."</a></td></tr></table>";
        $i++;
        if(($i==$callcnt) || ($i==$arraynum) ) { //불러낼 최근게시제목 수
            echo "";nt";
            $i = 0; $j++;
        }
    }
    ?>

        var bMouseOver = 1;
        var scrollspeed = 1;                // Scrolling 속도        
        var waitingtime = 3000;                // 멈추는 시간
        var s_tmp = 0, s_amount = 132;
        var startPanel=0, n_panel=0, i=0;

        var scrollerheight= content_count * s_amount;                // 스크롤러의 세로 ( s_amount의 )
        var html,total_area=0,wait_flag=true;

        function startscroll()
        { // 스크롤 시작
                i=0;
                for (i in scroll_content)
                        n_panel++;
                        
                n_panel = n_panel -1 ;
                startPanel = Math.round(Math.random()*n_panel);
                if(startPanel == 0)
                {
                        i=0;
                        for (i in scroll_content)
                                insert_area(total_area, total_area++);
                }
                else if(startPanel == n_panel)
                {
                        insert_area(startPanel, total_area);
                        total_area++;
                        for (i=0; i<startPanel; i++)
                        {
                                insert_area(i, total_area);
                                total_area++;
                        }
                }
                else if((startPanel > 0) || (startPanel < n_panel))
                {
                        insert_area(startPanel, total_area);
                        total_area++;
                        for (i=startPanel+1; i<=n_panel; i++)
                        {
                                insert_area(i, total_area);
                                total_area++;
                        }
                        for (i=0; i<startPanel; i++)
                        {
                                insert_area(i, total_area);
                                total_area++;
                        }
                }
                window.setTimeout("scrolling()",waitingtime);
        }
        function scrolling(){ // 실제로 스크롤 하는 부분
                if (bMouseOver && wait_flag)
                {
                        for (i=0;i<total_area;i++){
                                tmp = document.getElementById('scroll_area'+i).style;
                                tmp.top = parseInt(tmp.top)-scrollspeed;
                                if (parseInt(tmp.top) <= -scrollerheight){
                                        tmp.top = scrollerheight*(total_area-1);
                                }
                                if (s_tmp++ >= (s_amount-1)*scroll_content.length){
                                        wait_flag=false;
                                        window.setTimeout("wait_flag=true;s_tmp=0;",waitingtime);
                                }
                        }
                }
                window.setTimeout("scrolling()",1);
        }
        function insert_area(idx, n){
                html='<div style="left: 0px; width: 100%; position: absolute; top: '+(scrollerheight*n)+'px" id="scroll_area'+n+'">n';
                html+=scroll_content[idx]+'n';
                html+='</div>n';
                document.write(html);
        }

</script>


<table width=165>
<tr><td background=gal_img/gal_back.gif width=160 height=170 align=center>
<br><br><div style="width: 122; height: 130px; overflow:hidden;" onMouseover="bMouseOver=0" onMouseout="bMouseOver=1" id="scroll_image">
        <script>startscroll();</script>
</div></td></tr></table>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
구름나무바위 getNewestCommentList <- 설명 부탁드려요. [2] 2013.12.24 by Canto
성민파파 xe 버전업과정에서 에러가 났습니다. file  
하하하3080 질문드립니다. /xe없이 도메인만 쳐서 들어갈 수 있게 하려면 어떻게 해야하나요? [4] 2013.12.24 by 이동일636
r_ainbow 포럼 모듈 모바일 질문 [1] 2013.12.24 by 마래바
마래바 XE 포럼 게시판에서 모바일 글쓰기가 안되네요..  
내사랑은서 비회원 게시판 글 등록시 메일 받기가 안됩니다.  
오병이어 최악입니다. [2] 2013.12.24 by 하얀마법
라돌체 비추천인 표시하기!? [1] 2013.12.24 by 더뿌
라돌체 썸네일 화질이 너무 안좋아서 그러는데요, [1] 2013.12.24 by 더뿌
오락실주인 XE 오픈마켓 가능한가요 ? [1] 2013.12.23 by 벨몽이
잇힝~887 이미지업로드 질문드립니다. [1] 2013.12.23 by 더뿌
펭구 홈페이지 구문오류 재 질문합니다. [2] 2013.12.23 by Arp.
야옹이님 포인트 21억 이상으로 설정하는 방법 없나요?  
세상의빛과소금 게시글 작성자가 남이 쓴 댓글을 지울 수 있게 하고 싶습니다.  
애니즌 애드온을 통해 게시글 제목을 바꿀 때 태그가 안되는 문제..  
금빛붕어 게시판에 글쓴후 수정하기가 안됩니다 [1] file 2013.12.23 by Arp.
화랑529 홈페이지 이전 후 이러한 문제 [1] file 2013.12.23 by Arp.
앙290 게시글을 검색로봇이 수집못하게 할 수도 있나요? [1] 2013.12.23 by Arp.
기석군 xe 기본 스킨 메뉴에 대한 질문 file  
새벽들녁 게시판의 게시물에 대한 바로가기 메뉴 선택 상태 표시 [1] 2013.12.23 by 졸라맨
라피에르 최고관리자 권한에서 삭제 일부권한만 줄수 없나요?  
네비 게임 홈페이지 레이아웃  
혀니얀 혹시 게시판 스킨하고난뒤 이오류아시는분? [1] 2013.12.22 by KS
ieltstommy xe admind 의 화면이 깨지는 현상 [1] file 2013.12.22 by KrteamENT
마래바 포럼 모듈 글쓰기에서 '잘못된 요청' 이라네요.  
moonsoo77 질문 할때가 없어서 여기에 올려봅니다. 카o2o 사용중인데 ... [4] file 2020.03.14 by BNU
한그림 익스플로러11 한글명 다운로드 에러 file  
혀니얀 이오류 수정법아시는분??ㅜ_ㅜ [1] 2013.12.21 by LI-NA
오병이어 게시판 모듈을 클릭하면 다음과 같은 에러가 [1] 2013.12.21 by KrteamENT
꾸링 포인트는 보유하고 있는데 0 포인트라고 나오는 현상 [1] 2013.12.21 by Arp.