이걸 어떡해야할지 참 난감하네요 ㅠ0ㅠ 도와주세요
저기 빨간 박스안에 게시판 최신글을 불러와서 넣구 싶은데
배추빌더처럼 게시판이 돌아가면서 그게시판의 최신글들을 보여주면 좋겠는데 아무리해도
저는 부족한가봅니다 ㅠ
<?
/**
* Google RSS News Plugin 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; // 개별 페이지 접근 불가
?>
<div style="width:595px;margin:0 auto;margin-top:50px;">
<style type="text/css">
#google-news { width:595px; background-color:#d6d6d6; border-top:0px solid #00a8fe; }
#google-news td { background-color:#fff; }
#google-news a { color:#2F3743; }
#google-news .subject { background-color:#fcfcfc; width:127px; height:25px; font-weight:bold; overflow:hidden; }
#google-news .subject .margin { margin:5px 0 0 15px; }
#google-news #list { float:left; margin:0; padding:0; list-style:none; width:127px; height:160px; }
#google-news #list .margin { padding:5px 0 0 15px; }
#google-news #list li { height:17px; line-height:17px; }
#google-news #list .gn_item { color:#6B6D70; font-size:11px; font-family:dotum; }
#google-news #list .gn_item:hover { color:#F60; text-decoration:none; }
#google-news #list .gn_sel { color:#F60; text-decoration:none; font-weight:bold; font-size:11px; }
#google-news #news { float:left; margin:0; padding:0; list-style:none; margin:5px 5px 5px 10px; overflow:hidden; }
#google-news #news li { width:360px; height:21px; line-height:20px; overflow:hidden; }
#google-news #news li { margin:0; padding:0 0 0 7px; background:url(img/dot.gif) no-repeat 0 5px; }
#google-news #news li a { font-size:12px; }
#google-news #news li a:hover { color:#00a3f7; text-decoration:none; }
#google-news #news li a:visited { }
#google-news #news li a:active { color:#00a3f7; }
#google-news #news li.image { float:left; width:100; text-align:center; height:160px; }
#google-news .today { font-size:11px; text-align:left;}
#ajax-loading { display:none; float:right; margin:5px 5px 0 0; }
</style>
<table border="0" cellpadding="0" cellspacing="1" id="google-news">
<div style="height:20px"></div>
<tr>
<td class="subject" valign="top">
<div class="margin"><img src="/plugin/google-news/img/news.gif" style="cursor:hand"></div>
</td>
<td style="background-color:#F8F8F8; padding-left:10px;">
<div class="today">
<img src="/plugin/google-news/img/icon_clock.gif" align="absmiddle">
<span id="mw-today"></span><span id="mw-time"></span>
</div>
</td>
<tr>
<td width="127">
<ul id="list">
<div class="margin">
<li><a href="javascript:mw_google_news('')" id="gn-" class="gn_item">게시판1</a></li>
<li><a href="javascript:mw_google_news('p')" id="gn-p" class="gn_item">게시판2</a></li>
<li><a href="javascript:mw_google_news('y')" id="gn-y" class="gn_item">게시판3 </a></li>
<li><a href="javascript:mw_google_news('l')" id="gn-l" class="gn_item">게시판4 </a></li>
<li><a href="javascript:mw_google_news('w')" id="gn-w" class="gn_item">게시판5</a></li>
<li><a href="javascript:mw_google_news('t')" id="gn-t" class="gn_item">게시판6</a></li>
<li><a href="javascript:mw_google_news('s')" id="gn-s" class="gn_item">게시판7</a></li>
<li><a href="javascript:mw_google_news('e')" id="gn-e" class="gn_item">게시판8</a></li>
<li><a href="javascript:mw_google_news('z')" id="gn-z" class="gn_item">게시판9</a></li>
</div>
</ul>
</td>
<td valign="top">
<div id="ajax-loading"><img src="/plugin/google-news/img/loading.gif"></div>
<ul id="news" onClick="a()" style="cursor:hand"></ul>
</td>
</tr>
</table>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
gns = new Array();
gns[0] = "";
gns[1] = "p";
gns[2] = "y";
gns[3] = "l";
gns[4] = "w";
gns[5] = "t";
gns[6] = "s";
gns[7] = "e";
gns[8] = "z";
gns_idx = -1;
gns_time = "";
function mw_google_news(topic) {
$("#news").load("get_news.php?topic="+topic);
$(".gn_sel").each(function () {
$(this).removeClass().addClass("gn_item");
});
$("#gn-"+topic).removeClass().addClass("gn_sel");
for (i=0; i<gns.length; i++) {
if (gns[i] == topic) {
gns_idx = i;
}
}
}
function mw_google_news_change() {
if (++gns_idx >= gns.length)
gns_idx = 0;
mw_google_news(gns[gns_idx]);
gns_time = setTimeout("mw_google_news_change()", 9000);
}
$(document).ready(function() {
$("#ajax-loading").ajaxStart(function() {
//$("#news").hide();
$(this).show();
}).ajaxStop(function() {
$(this).hide();
$("#news").show();
});
});
mw_google_news_change();
$("#google-news").hover(function () {
clearTimeout(gns_time);
}, function () {
gns_time = setTimeout("mw_google_news_change()", 9000);
});
mw_timer_init = 1303804184000;
function mw_timer() {
mw_timer_init += 1000;
var date = new Date();
var month = date.getMonth()+1;
var day = date.getDate();
var hours= date.getHours()+1;
var minutes= date.getMinutes();
var seconds= date.getSeconds();
var time = hours+":"+minutes+":"+seconds;
var wstr = "일월화수목금토";
var week = wstr.substr(date.getDay(),1);
if (month < 10) month = "0" + month;
if (day < 10) day = "0" + day;
//var str = month + "월 " + day + "일 " + "(" + week + ") ";
var str = month + "." + day + " (" + week + ") ";
document.getElementById("mw-today").innerHTML = str;
document.getElementById("mw-time").innerHTML = time;
setTimeout("mw_timer()", 1000);
}
mw_timer();
</script>
</div>
배추빌더처럼 게시판이 돌아가면서 그게시판의 최신글들을 보여주면 좋겠는데 아무리해도
저는 부족한가봅니다 ㅠ
<?
/**
* Google RSS News Plugin 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; // 개별 페이지 접근 불가
?>
<div style="width:595px;margin:0 auto;margin-top:50px;">
<style type="text/css">
#google-news { width:595px; background-color:#d6d6d6; border-top:0px solid #00a8fe; }
#google-news td { background-color:#fff; }
#google-news a { color:#2F3743; }
#google-news .subject { background-color:#fcfcfc; width:127px; height:25px; font-weight:bold; overflow:hidden; }
#google-news .subject .margin { margin:5px 0 0 15px; }
#google-news #list { float:left; margin:0; padding:0; list-style:none; width:127px; height:160px; }
#google-news #list .margin { padding:5px 0 0 15px; }
#google-news #list li { height:17px; line-height:17px; }
#google-news #list .gn_item { color:#6B6D70; font-size:11px; font-family:dotum; }
#google-news #list .gn_item:hover { color:#F60; text-decoration:none; }
#google-news #list .gn_sel { color:#F60; text-decoration:none; font-weight:bold; font-size:11px; }
#google-news #news { float:left; margin:0; padding:0; list-style:none; margin:5px 5px 5px 10px; overflow:hidden; }
#google-news #news li { width:360px; height:21px; line-height:20px; overflow:hidden; }
#google-news #news li { margin:0; padding:0 0 0 7px; background:url(img/dot.gif) no-repeat 0 5px; }
#google-news #news li a { font-size:12px; }
#google-news #news li a:hover { color:#00a3f7; text-decoration:none; }
#google-news #news li a:visited { }
#google-news #news li a:active { color:#00a3f7; }
#google-news #news li.image { float:left; width:100; text-align:center; height:160px; }
#google-news .today { font-size:11px; text-align:left;}
#ajax-loading { display:none; float:right; margin:5px 5px 0 0; }
</style>
<table border="0" cellpadding="0" cellspacing="1" id="google-news">
<div style="height:20px"></div>
<tr>
<td class="subject" valign="top">
<div class="margin"><img src="/plugin/google-news/img/news.gif" style="cursor:hand"></div>
</td>
<td style="background-color:#F8F8F8; padding-left:10px;">
<div class="today">
<img src="/plugin/google-news/img/icon_clock.gif" align="absmiddle">
<span id="mw-today"></span><span id="mw-time"></span>
</div>
</td>
<tr>
<td width="127">
<ul id="list">
<div class="margin">
<li><a href="javascript:mw_google_news('')" id="gn-" class="gn_item">게시판1</a></li>
<li><a href="javascript:mw_google_news('p')" id="gn-p" class="gn_item">게시판2</a></li>
<li><a href="javascript:mw_google_news('y')" id="gn-y" class="gn_item">게시판3 </a></li>
<li><a href="javascript:mw_google_news('l')" id="gn-l" class="gn_item">게시판4 </a></li>
<li><a href="javascript:mw_google_news('w')" id="gn-w" class="gn_item">게시판5</a></li>
<li><a href="javascript:mw_google_news('t')" id="gn-t" class="gn_item">게시판6</a></li>
<li><a href="javascript:mw_google_news('s')" id="gn-s" class="gn_item">게시판7</a></li>
<li><a href="javascript:mw_google_news('e')" id="gn-e" class="gn_item">게시판8</a></li>
<li><a href="javascript:mw_google_news('z')" id="gn-z" class="gn_item">게시판9</a></li>
</div>
</ul>
</td>
<td valign="top">
<div id="ajax-loading"><img src="/plugin/google-news/img/loading.gif"></div>
<ul id="news" onClick="a()" style="cursor:hand"></ul>
</td>
</tr>
</table>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
gns = new Array();
gns[0] = "";
gns[1] = "p";
gns[2] = "y";
gns[3] = "l";
gns[4] = "w";
gns[5] = "t";
gns[6] = "s";
gns[7] = "e";
gns[8] = "z";
gns_idx = -1;
gns_time = "";
function mw_google_news(topic) {
$("#news").load("get_news.php?topic="+topic);
$(".gn_sel").each(function () {
$(this).removeClass().addClass("gn_item");
});
$("#gn-"+topic).removeClass().addClass("gn_sel");
for (i=0; i<gns.length; i++) {
if (gns[i] == topic) {
gns_idx = i;
}
}
}
function mw_google_news_change() {
if (++gns_idx >= gns.length)
gns_idx = 0;
mw_google_news(gns[gns_idx]);
gns_time = setTimeout("mw_google_news_change()", 9000);
}
$(document).ready(function() {
$("#ajax-loading").ajaxStart(function() {
//$("#news").hide();
$(this).show();
}).ajaxStop(function() {
$(this).hide();
$("#news").show();
});
});
mw_google_news_change();
$("#google-news").hover(function () {
clearTimeout(gns_time);
}, function () {
gns_time = setTimeout("mw_google_news_change()", 9000);
});
mw_timer_init = 1303804184000;
function mw_timer() {
mw_timer_init += 1000;
var date = new Date();
var month = date.getMonth()+1;
var day = date.getDate();
var hours= date.getHours()+1;
var minutes= date.getMinutes();
var seconds= date.getSeconds();
var time = hours+":"+minutes+":"+seconds;
var wstr = "일월화수목금토";
var week = wstr.substr(date.getDay(),1);
if (month < 10) month = "0" + month;
if (day < 10) day = "0" + day;
//var str = month + "월 " + day + "일 " + "(" + week + ") ";
var str = month + "." + day + " (" + week + ") ";
document.getElementById("mw-today").innerHTML = str;
document.getElementById("mw-time").innerHTML = time;
setTimeout("mw_timer()", 1000);
}
mw_timer();
</script>
</div>
댓글 4개
13년 전
각 게시판 최신글을 div 로 감추고 롤링 시키면 될것같습니다.
http://www.blueb.co.kr/blueb/javascript.php?mid=5&ctg1=11&r=view&uid=64078 이런식으로..
저는 배추스킨꺼 쓰고 있는데.. 3세대 최신글 스킨이요. 그거 쓰시면 편하실것같네요.
http://www.blueb.co.kr/blueb/javascript.php?mid=5&ctg1=11&r=view&uid=64078 이런식으로..
저는 배추스킨꺼 쓰고 있는데.. 3세대 최신글 스킨이요. 그거 쓰시면 편하실것같네요.
13년 전
제가 초보자라서요 ㅠㅠ
13년 전
혹시 제가 도움드릴수 있다면 드릴테니 쪽지주세요.
13년 전
제가 쪽지가 안되요 바삭님 ㅠ0ㅠ 활동지수 머라구 하면서... 네이트온 하시면
쪽지로 네이트온 주소 보내주시면 제가 친추 드릴게요
쪽지로 네이트온 주소 보내주시면 제가 친추 드릴게요
게시글 목록
| 번호 | 제목 |
|---|---|
| 284172 | |
| 284170 | |
| 284167 | |
| 284164 | |
| 284161 | |
| 284159 | |
| 284155 | |
| 284152 | |
| 284151 | |
| 284148 | |
| 284142 | |
| 284141 | |
| 284137 | |
| 284136 | |
| 284135 | |
| 284127 | |
| 284121 | |
| 284120 | |
| 284116 | |
| 284115 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기