딱! 스타일로 바뀌었습니당. > 질문답변

본문 바로가기

사이트 내 전체검색

뒤로가기 질문답변

딱! 스타일로 바뀌었습니당.

본문

후다닥 무작정? 따라했습니다. 너무나 이쁜나머지...쪽~
감사합니다. 덕분에 원하던 스타일을 찾았습니다.
 
그렇지만 아무것도 모르는 초보라 몇가지 질문 들어갑니다.
 
따라한것 그림캡쳐
main.gif
 
1. 좌측이미지 이미지 삽입 미해결...
2. 메뉴말고 검색어 및 게시물 글씨체가 하얗게 하기...저는 검은색
3. 우측 스크롤 게시물 앞부분 처리(똑같이 않됨)...
 
연후아빠님만 쳐다봅니다. 가르침 부탁드립니다.
추천0

댓글목록 9

연후아빠님의 댓글

연후아빠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

스크롤 전체소스
*************
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 위로 스크롤되는 최신글

// 사용법 :
// 스킨, 게시판아이디, 출력라인, 글자수, "몇개라인,라인높이"
// latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")

// $rows(출력라인)는 $line_mod의 2의 배수 이상으로 설정하셔야 합니다.

// 유니크 값 (최신글은 한페이지에 여러개 둘 수 있으므로... 자바스크립트에서 함수, 변수 충돌을 방지)
$uni = md5(uniqid(rand(), true));

list($line_mod, $height) = explode(",", $options);

$box_height = (int)$line_mod * (int)$height;
?>

<table id=new_all width=100% cellpadding=0 cellspacing=0><tr><td>
                <nobr style='display:block; overflow:hidden; width:150;'>


<? if (count($list) == 0) { ?>
    <tr><td colspan=4 align=center height=30>게시물이 없습니다.</td></tr>
<? } else { ?>

    <script language="javascript">
    var roll_height_<?=$uni?> = <?=$box_height?>;
    var total_area_<?=$uni?> = 0;
    var wait_flag_<?=$uni?> = true;

    var bMouseOver_<?=$uni?> = 1;
    var roll_speed_<?=$uni?> = 1;
    var waitingtime_<?=$uni?> = 3000;
    var s_tmp_<?=$uni?> = 0;
    var s_amount_<?=$uni?> = <?=(int)$height?>;
    var roll_text_<?=$uni?> = new Array();
    var startPanel_<?=$uni?> = 0;
    var n_panel_<?=$uni?> = 0;
    var i_<?=$uni?> = 0;

    function start_roll_<?=$uni?>()
    {
        i_<?=$uni?> = 0;
        for (i_<?=$uni?> in roll_text_<?=$uni?>)
            n_panel_<?=$uni?>++;

        n_panel_<?=$uni?> = n_panel_<?=$uni?> -1 ;
        startPanel_<?=$uni?> = Math.round(Math.random()*n_panel_<?=$uni?>);
        if(startPanel_<?=$uni?> == 0) {
            i_<?=$uni?> = 0;
            for (i_<?=$uni?> in roll_text_<?=$uni?>)
                insert_area_<?=$uni?>(total_area_<?=$uni?>, total_area_<?=$uni?>++);
        } else if(startPanel_<?=$uni?> == n_panel_<?=$uni?>) {
            insert_area_<?=$uni?>(startPanel_<?=$uni?>, total_area_<?=$uni?>);
            total_area_<?=$uni?>++;
            for (i_<?=$uni?>=0; i_<?=$uni?><startPanel_<?=$uni?>; i_<?=$uni?>++) {
                insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>);
                total_area_<?=$uni?>++;
            }
        } else if((startPanel_<?=$uni?> > 0) || (startPanel_<?=$uni?> < n_panel_<?=$uni?>)) {
            insert_area_<?=$uni?>(startPanel_<?=$uni?>, total_area_<?=$uni?>);
            total_area_<?=$uni?>++;
            for (i_<?=$uni?>=startPanel_<?=$uni?>+1; i_<?=$uni?><=n_panel_<?=$uni?>; i_<?=$uni?>++) {
                insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>);
                total_area_<?=$uni?>++;
            }
            for (i_<?=$uni?>=0; i_<?=$uni?><startPanel_<?=$uni?>; i_<?=$uni?>++) {
                insert_area_<?=$uni?>(i_<?=$uni?>, total_area_<?=$uni?>);
                total_area_<?=$uni?>++;
            }
        }
   
        if ( navigator.appName == "Microsoft Internet Explorer" ) {
            if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 )
            return ;
        }
        window.setTimeout("rolling_<?=$uni?>()",waitingtime_<?=$uni?>);
    }

    function rolling_<?=$uni?>()
    {
        if (bMouseOver_<?=$uni?> && wait_flag_<?=$uni?>) {
            for (i_<?=$uni?>=0;i_<?=$uni?><total_area_<?=$uni?>;i_<?=$uni?>++) {
                tmp_<?=$uni?> = document.getElementById('scroll_area_<?=$uni?>'+i_<?=$uni?>).style;
                tmp_<?=$uni?>.top = parseInt(tmp_<?=$uni?>.top)-roll_speed_<?=$uni?>;
             
                if (parseInt(tmp_<?=$uni?>.top) <= -roll_height_<?=$uni?>) {
                    tmp_<?=$uni?>.top = roll_height_<?=$uni?>*(total_area_<?=$uni?>-1);
                }
             
                if (s_tmp_<?=$uni?>++ > (s_amount_<?=$uni?>-1)*roll_text_<?=$uni?>.length) {
                    wait_flag_<?=$uni?>=false;
                    window.setTimeout("wait_flag_<?=$uni?>=true;s_tmp_<?=$uni?>=0;",waitingtime_<?=$uni?>);
                }
            }
        }
        window.setTimeout("rolling_<?=$uni?>()", 1);
    }

    function insert_area_<?=$uni?>(idx_<?=$uni?>, n_<?=$uni?>)
    {
        document.write('<div style="left: 0px; width: 100%; position: absolute; top: '+(roll_height_<?=$uni?>*n_<?=$uni?>)+'px" id="scroll_area_<?=$uni?>'+n_<?=$uni?>+'">\n'+roll_text_<?=$uni?>[idx_<?=$uni?>]+'\n</div>\n');
    }

    <?
    unset($roll_text);
    for ($i=0; $i<count($list); $i++) {
        $href = "<a href='./?doc=$cart_dir/item.php&it_id=$row[it_id]' class=item>";

        $k = (int)($i / $line_mod);
$list[$i][gr_subject] =addslashes($list[$i][gr_subject]);
$list[$i][bo_subject] =addslashes($list[$i][bo_subject]);
$list[$i][wr_subject] =addslashes($list[$i][wr_subject]);

        $roll_text[$k] .= "<div style=\"height:{$height}px; padding-top:0px;\">";
        //$roll_text[$k] .= "<div style=\"height:{$height}px; padding-top:5px;\">";
        //$roll_text[$k] .= "<img src=\"{$latest_skin_path}/img/latest_icon.gif\" align=absmiddle border=0>&nbsp;&nbsp;";
$roll_text[$k] .= "<font color=FFFFFF>";
$roll_text[$k] .= "·&nbsp;";
        $roll_text[$k] .= "<a href=\"{$list[$i][href]}\">";
        //$roll_text[$k] .= "[";
        //$roll_text[$k] .= $list[$i][gr_subject];
        //$roll_text[$k] .= "/";
        //$roll_text[$k] .= $list[$i][bo_subject];
        //$roll_text[$k] .= "] ";
$roll_text[$k] .= "<font color=FFFFFF>";
        $roll_text[$k] .= $list[$i][wr_subject];
$roll_text[$k] .= "</FONT>";
        //$roll_text[$k] .= "[";
        //$roll_text[$k] .= $list[$i][gr_subject];
        //$roll_text[$k] .= "] ";
        //$roll_text[$k] .= $list[$i][wr_subject];
        if ($list[$i][comment_cnt])
$roll_text[$k] .= "<font color=FFFFFF>";
            $roll_text[$k] .= " {$list[$i][comment_cnt]}";
        $roll_text[$k] .= "</a>";
$roll_text[$k] .= "</FONT>";
        $roll_text[$k] .= "</div>";
    }

    for ($i=0; $i<=$k; $i++) {
        echo "roll_text_{$uni}[$i] = '{$roll_text[$i]}';\n";
    }
    ?>
    </script>

    <div style="left: 0px; width: 100%; position: relative; top: 5px; height: <?=$box_height?>px; overflow:hidden;" onMouseover="bMouseOver_<?=$uni?>=0" onMouseout="bMouseOver_<?=$uni?>=1" id="latest_scroll_<?=$uni?>">
    <script language='javascript'>
    var no_script_flag_<?=$uni?> = false ;
    if ( navigator.appName == "Microsoft Internet Explorer" ) {
        if ( navigator.appVersion.indexOf ( "MSIE 4" ) > -1 ) {
            document.write ( roll_text_<?=$uni?>[0] ) ;
            no_script_flag_<?=$uni?> = true ;
        }
    }
    if ( no_script_flag_<?=$uni?> == false )
        start_roll_<?=$uni?>();
    </script>
    </div> 

<? } ?>

                </nobr></td></tr></table>

연후아빠님의 댓글

연후아빠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

인기검색어
***********
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<font color=#FFA040>인기검색어 : </font><font color=#FFFFFF>
<?
for ($i=0; $i<count($list); $i++) {
    echo "<a href='$g4[bbs_path]/search.php?sfl=wr_subject&sop=and&stx=".urlencode($list[$i][pp_word])."'><font color=#FFFFFF>{$list[$i][pp_word]}</font></a>ㅣ";
}
?></font>



lib/popular.lib.php
***************
<?
if (!defined('_GNUBOARD_')) exit;

// 인기검색어 출력
// $skin_dir : 스킨 디렉토리
// $pop_cnt : 검색어 몇개
// $date_cnt : 몇일 동안
function popular($skin_dir='basic', $pop_cnt=5, $date_cnt=3)
{
    global $config, $g4;

    if (!$skin_dir) $skin_dir = 'basic';

    $date_gap = date("Y-m-d", $g4[server_time] - ($date_cnt * 86400));
    $sql = " select pp_word, count(*) as cnt from $g4[popular_table]
              where pp_date between '$date_gap' and '$g4[time_ymd]'
              group by pp_word
              order by cnt desc, pp_word
              limit 0, $pop_cnt ";
    $result = sql_query($sql);
    for ($i=0; $row=sql_fetch_array($result); $i++)
    {
        $list[$i] = $row;
        // 스크립트등의 실행금지
        $list[$i][pp_word] = get_text($list[$i][pp_word]);
    }

    ob_start();
    $popular_skin_path = "$g4[path]/skin/popular/$skin_dir";
    include_once ("$popular_skin_path/popular.skin.php");
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}
?>

연후아빠님의 댓글

연후아빠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

현재접속자
**********
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
                   
        <table width="100%"border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td align="center">&nbsp;<a href='<?=$g4['bbs_path']?>/current_connect.php'><font color=#F4FD02><strong>현재접속자</strong> : <?=$row['total_cnt']?> (회원 <?=$row['mb_cnt']?>)</font></a></td>
        </tr>
        </table>

연후아빠님의 댓글

연후아빠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

탑배너
*************
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가


if (!$board[bo_8]) alert("해당 게시판 설정 : 여분 필드 8 에 목록에서 보여질 이미지의 가로 크기를 설정하십시오.");
if (!$board[bo_9]) alert("해당 게시판 설정 : 여분 필드 9 에 목록에서 보여질 이미지의 세로 크기를 설정하십시오.");
//if (!$board[bo_10]) alert("해당 게시판 설정 : 여분 필드 10 에 목록에서 보여질 한 줄당 가로 이미지 수를 설정하십시오.");

//$cols  = $board[bo_10]; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수)
//$col_width = (int)(99 / $cols);
$img_w  = $board[bo_8]; // 이미지 가로
$img_h  = $board[bo_9]; // 이미지 세로

?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align="right">
        <?             
echo "<a href='{$list[$i][wr_1]}'  target='{$list[$i][wr_2]}'>";
            $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
            if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?>
<img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>'  width='<?=$img_w?>' height='<?=$img_h?>' border='0'></a>
  <?}
else if(preg_match("/\.(swf|wmv|asf)$/i", $image))
{ echo"<script>doc_write(flash_movie('$g4[path]/data/file/$bo_table/$image', 'flash$i', '$img_w', '$img_h', 'transparent'));</script>";}
?>         
</td>
</tr>
<? } ?>
</table>


관리자 여분필드
1 - 200
2 - 70
3 - 100
8 - 200
9 - 70

힘쓰님의 댓글의 댓글

힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

이부분만 좀더 자세한 설명 부탁드립니다.

제가 이해한건 배너그룹에 topbanner을 만들어 사용하는건가요???

연후아빠님의 댓글의 댓글

연후아빠쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

아 설명이 부족했네요.
배너게시판스킨입니다~!

힘쓰님의 댓글의 댓글

힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

아니요 나머지 잘 따라했구요. 감사^^;

탑배너부분
---------------------------------------------------------------------------------------------------
<td align="right">
        <a href='http://zeronara.net/bbs/board.php?bo_table=z1_2'  target='_blank'><img src='../data/file/topbanner/3693281076_434e2194_homepage.gif'  width='200' height='70' border='0'></a>
           
</td>
---------------------------------------------------------------------------------------------------
이부분이
head.php에서
<td width="<?=$zleftfront?>" height="110" border="0"></td>
이 부분인가요?? 다음인가요?
<?=$zleftfront?>이걸 적용하는걸 몰르겠습니다.
좌측폰트???

추가: 어느위치 파일을 몇개정도 수정? 또는 고쳐줘야 하는지요?

힘쓰님의 댓글

힘쓰쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

호곡 이런 너무 감사합니다. 이렇게 너무 퍼주시다 바닥 드러나는거 아닙니까!!!!!
감사합니다.
적용 들어 갑니다........

thai님의 댓글

thai쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일

정말 좋습니다. 최곱니다.

전체 1,640건 20 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기