인기검색어가.. > 질문답변

본문 바로가기
사이트 내 전체검색

질문답변

서버정보나 계정정보는 보안유지를 위해 관리자쪽지나 메일로 발송해 주시거나 제작의뢰 게시판을 이용해 주시면 감사하겠습니다..

인기검색어가..

페이지 정보

본문

너무 깜박거려요..

아마도 읽는 속도가 빠른지..

시피유 점유율도 올라가구..

좀 늦게 만들순 없는지요..
추천0

댓글목록

profile_image

제로님의 댓글

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

일단은 타이머부분을 빼고 사용하셔야 할거 같습니다.

profile_image

제로님의 댓글

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

팝업창 소스를 이용해서 새글 띠우기로 가닥을 잡아 보시는게 낳을듯 싶네요.

profile_image

Spirra님의 댓글

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

타이머 부분이 어딧나요??

profile_image

제로님의 댓글

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

샘플
<?
/**
 * Popular skin for Gnuboard4
 *
 * Copyright (c) 2008 Choi Jae-Young <www.miwit.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$date_gap_old = date("Y-m-d", strtotime($date_gap) - ($date_cnt * 86400));

$old = array();
$sql2 = " select pp_word, count(*) as cnt from $g4[popular_table]
  where pp_date between '$date_gap_old' and '$date_gap'
  group by pp_word
  order by cnt desc, pp_word
  limit 0, 100 ";
$qry2 = sql_query($sql2);
$count = mysql_num_rows($qry2);
for ($j=0; $row2=sql_fetch_array($qry2); $j++) {
    $old[$j] = $row2;
}

for ($i=0; $i<$pop_cnt; $i++)
{
    for ($j=0; $j<$count; $j++) {
if ($old[$j][pp_word] == $list[$i][pp_word]) {
    break;
}
    }

    $list[$i][pp_word] = urldecode($list[$i][pp_word]);
    $list[$i][pp_rank] = $i + 1;
    if ($count == $j) {
$list[$i][old_pp_rank] = 0;
$list[$i][rank_gap] = 0;
    } else {
$list[$i][old_pp_rank] = $j + 1;
$list[$i][rank_gap] = $list[$i][old_pp_rank] - $list[$i][pp_rank];
    }
    if ($list[$i][rank_gap] > 0)
$list[$i][icon] = "up";
    else if ($list[$i][rank_gap] < 0)
$list[$i][icon] = "down";
    else if ($list[$i][old_pp_rank] == 0)
$list[$i][icon] = "new";
    else if ($list[$i][rank_gap] == 0)
$list[$i][icon] = "nogap";
}

?>
<style type="text/css">
.mw-popular { border:1px solid #e1e1e1; text-align:center; }
.mw-popular td { font-size:12px; line-height:16px; }
.mw-popular a:link { color:#444; text-decoration:none; }
.mw-popular a:active { color:#444; text-decoration:none;  }
.mw-popular a:visited { color:#444; text-decoration:none;  }
.mw-popular a:hover { color:#444; text-decoration:underline; }
.mw-popular .subject { background:url(<?=$popular_skin_path?>/img/box-bg.gif); height:24px; margin:0 0 7px 0; }
.mw-popular .subject { font-size:12px; color:#555; font-weight:bold; letter-spacing:-1px; text-decoration:none; text-align:left; }
.mw-popular .subject div { margin:5px 0 0 10px;}
.mw-popular table { margin:0 0 0 5px;}
.mw-popular .word { width:105px; height:16px; overflow:hidden; margin:2px 0 0 5px; }
.mw-popular .gap { letter-spacing:-1px; font-size:11px; }
</style>

<div class="mw-popular">
<div style="border:1px solid #fff;">
<div class="subject"><div>인기검색어</div></div>
<table border=0 cellpadding=0 cellspacing=0>
<? for ($i=0; $i<$pop_cnt; $i++) { ?>
<? if (!is_array($list[$i])) continue; ?>
<tr>
<td width="20" height="20"><img src="<?=$popular_skin_path?>/img/<?=sprintf("%02d", $i+1)?>.gif"></td>
<td width="110">
    <div class="word"><a href="<?=$g4[bbs_path]?>/search.php?sfl=wr_subject&sop=and&stx=<?=urlencode($list[$i][pp_word])?>"><?=$list[$i][pp_word]?></a></div>
</td>
<td width="35">
    <img src="<?=$popular_skin_path?>/img/<?=$list[$i][icon]?>.gif" align=absmiddle>
    <span class="gap"><? if ($list[$i][icon] != "new" && $list[$i][icon] != "nogap") { echo abs($list[$i][rank_gap]); }?></span>
</td>
</tr>
<? } ?>
</table>
</div>
</div>

profile_image

Spirra님의 댓글

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

위내용이 다 타이머 부분인가요??

타이머 시간 늘이면 되지안나요??

Total 1,640건 24 페이지
  • RSS
질문답변 목록
번호 제목 글쓴이 조회 추천 날짜
1065 늙은여우쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7740 0 12-24
1064 쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 8503 1 12-17
1063
<div-> 관련 댓글4
소피쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10551 0 12-16
1062 소피쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 6105 0 12-15
1061 소피쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 11372 0 12-15
1060 소피쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 7312 0 12-14
1059 쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12592 0 12-08
1058 쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12980 0 11-26
1057 강용쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13687 0 11-20
1056 Spirra쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 10903 0 11-18
1055 용맨쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 6928 0 11-17
1054 용맨쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11626 0 11-16
1053 레몬트리쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 5823 0 11-09
1052 레몬트리쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 60 0 11-08
열람중 Spirra쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13234 0 11-05
1050 쎄엠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13459 0 10-24
1049 블루쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 9393 0 09-28
1048 휴먼쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11308 0 09-12
1047 아보병빠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 6675 0 09-01
1046 아보병빠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 7209 0 08-29
1045 아보병빠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12593 0 08-26
1044 아보병빠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12007 0 08-24
1043 아보병빠쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10195 0 08-24
1042 야구공쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13946 0 08-22
1041 월드컵쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12702 0 08-20

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
3,179
어제
8,087
최대
8,087
전체
1,417,817
Copyright (c) 株式会社YHPLUS. All rights reserved.