썸네일 클릭시 새창으로 원본 이미지 띄우기 > 그누4 질문답변

그누4 질문답변

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

썸네일 클릭시 새창으로 원본 이미지 띄우기 정보

썸네일 클릭시 새창으로 원본 이미지 띄우기

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 :


현재 사용중인 스킨은 nine님이 올리신 갤러리 스킨이구요 ▼
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=139676&sca=%EA%B0%A4%EB%9F%AC%EB%A6%AC&page=2

작업중인 게시판은 링크에 올려둡니다.


1. 썸네일이미지를 클릭하면 뷰페이지로 이동이 아닌 새창으로 큰 이미지를 띄우고 싶은데
스크립트를 이것저것 넣어봐도 안되네요 ㅠ

2. 이미지에 그레이필터 적용도 안되는데 뭐가 문젠지 잘 모르겠어요





리스트파일 리스트 호출부분 소스 올려봅니다.


<script language="JavaScript">
<!--
function transimg(place) {
if (place==1) dare.src="$g4[path]/data/file/$bo_table/$list[$i][file][0][file]";
}
// -->
</script>


    <table width=100% cellpadding=0 cellspacing=0>
    <tr>
    <?
    for ($i=0; $i<count($list); $i++) {
        if ($i && $i%$mod==0)
            echo "</tr><tr>";

        $style = "";
        $subject = "<span $style>{$list[$i][subject]}</span>";

        $comment_cnt = "";
        if ($list[$i][comment_cnt])
          $comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:10px;'><font face='Tahoma' color='#EE5A00'>{$list[$i][comment_cnt]}</span></a>";

        $list[$i][name] = preg_replace("/<img /", "<img style='display:none;' ", $list[$i][name]);
        $list[$i][name] = preg_replace(" /> <span/", "><span", $list[$i][name]);
        $list[$i][name] = preg_replace("/class='member'/", "", $list[$i][name]);

        echo "<td width='{$td_width}%' valign=top style='word-break:break-all; padding:0px;'>";
        echo "<table align=center style='background:url($board_skin_path/img/thumb_bg_bottom.gif) center bottom no-repeat; margin:0 auto 20px;'>";
        echo "<tr><td align=center style='background:url($board_skin_path/img/thumb_bg_top.gif) center top no-repeat;'><div style='float:left; padding:10px; font-size:0; line-height:0;'><a href='#' onClick='transimg(1)'>".makeThumbs($g4[path]."/data/file/$bo_table", $list[$i][file][0][file], $board[bo_1], $board[bo_2], cut_str($list[$i][subject],20))."</a></div></td></tr>";
        //echo "<tr><td align=center style='font-size:11px; color:#888;'>Date.".$list[$i][datetime2]." / Hit.".$list[$i][wr_hit]."</td></tr>";
        echo "<tr><td align=center class=lh height='27'>";
        //if ($is_category) echo "<a href='{$list[$i][ca_name_href]}'>[{$list[$i][ca_name]}]</a> ";
if ($is_checkbox) echo "<input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}' style='float:left; margin:-5px 0 0 10px;'>";
        echo "<a href='{$list[$i][href]}'>$subject</a><span class='comment'>{$comment_cnt}</span>";
        //echo " " . $list[$i][icon_new];
        //echo " " . $list[$i][icon_file];
        //echo " " . $list[$i][icon_link];
        //echo " " . $list[$i][icon_hot];
        //echo " " . $list[$i][icon_secret];
        echo "</td></tr>";
        //if ($is_checkbox) echo "<tr><td align=center><input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'></td></tr>";
        echo "</table></td>\n";
    }

    // 나머지 td
    $cnt = $i%$mod;
    if ($cnt)
        for ($i=$cnt; $i<$mod; $i++)
            echo "<td width='{$td_width}%'>&nbsp;</td>";
    ?>
    </tr>

    <? if (count($list) == 0) { echo "<tr><td colspan='$mod' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
<tr><td colspan='<?=$mod?>' height=15></td></tr>
    </table>

댓글 전체

전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT