최신글 슬라이드갤러리 채택완료
최신글 슬라이드 갤러리 스킨을 사용중인데
썸네일이 마지막으로 올린글부터 4개만 뜨고있어요~
게시글 모두뜨게 하고 싶은데
어디를 수정해야 하나요~
http://iiibook.cafe24.com/">http://iiibook.cafe24.com/
▼ latest.skin.php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
global $is_admin;
$n_thumb_width = 150; //썸네일 가로 크기
$n_thumb_height = 37; //썸네일 세로 크기
?>
var sliderwidth="1115px" //스크롤 가로 사이즈
var sliderheight="=$n_thumb_height;?>px" //스크롤 세로 사이즈
var slidespeed="1"
slidebgcolor="transparent" // 배경색을 주시려면 #99cc00 등과 같이 바꾸시면 됩니다 !
var leftarrowimage = "/img/left.gif";
var rightarrowimage = "/img/right.gif";
var leftrightslide=new Array()
var finalslide=''
for ($i=0; $i $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $imgwidth , $imgheight); $n_thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $n_thumb_width, $n_thumb_height); $n_noimg = "$latest_skin_url/img/noimg.gif"; if($n_thumb['src']) { $img_content = $n_thumb['src']; } else { $img_content = $n_thumb_width; } ?> leftrightslide[=$i;?>] = " ' target='_blank'> } ?> var imagegap="" var slideshowgap=0 var copyspeed=slidespeed leftrightslide=' var iedom=document.all||document.getElementById if (iedom) document.write(''+leftrightslide+'') var actualwidth='' var cross_slide, ns_slide var righttime,lefttime function fillup(){ if (iedom){ cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2 cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3 cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth cross_slide2.style.left=actualwidth+slideshowgap+"px" } else if (document.layers){ ns_slide=document.ns_slidemenu.document.ns_slidemenuorange ns_slide2=document.ns_slidemenu.document.ns_slidemenu3 ns_slide.document.write(leftrightslide) ns_slide.document.close() actualwidth=ns_slide.document.width ns_slide2.left=actualwidth+slideshowgap ns_slide2.document.write(leftrightslide) ns_slide2.document.close() } lefttime=setInterval("slideleft()",30) } window.onload=fillup function slideleft(){ if (iedom){ if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px" else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px" if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px" else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px" } else if (document.layers){ if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap } } function slideright(){ if (iedom){ if (parseInt(cross_slide.style.left)<(actualwidth+8)) cross_slide.style.left=parseInt(cross_slide.style.left)+copyspeed+"px" else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth*(-1)+slideshowgap+"px" if (parseInt(cross_slide2.style.left)<(actualwidth+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)+copyspeed+"px" else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth*(-1)+slideshowgap+"px" } else if (document.layers){ if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap } } function right(){ if(lefttime){ clearInterval(lefttime) clearInterval(righttime) righttime=setInterval("slideright()",30) } } function left(){ if(righttime){ clearInterval(lefttime) clearInterval(righttime) lefttime=setInterval("slideleft()",30) } } document.write(' document.write(' if (iedom||document.layers){ with (document){ document.write(' if (iedom){ write(' } else if (document.layers){ write(' write(' write(' write('') } document.write(' } } document.write(' ";
');
') ')') ')
답변 4개
최신글을 불러올때
echo latest('게시판bo_table값', '최신글스킨명', '출력갯수', '제목길이');
와 같이 사용합니다. index.php 나 최신글을 호출하는 파일에서 출력갯수부분을 수정하세요.
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
for ($i=0; $i $list[] 배열을 불러오는 곳에서 ($list) query의 limit 부분을 삭제해주세요
댓글을 작성하려면 로그인이 필요합니다.
너무 많이 불러오는 것은 별로 바람직하지 않을 듯 합니다.
페이지를 느리게 만들지 않을까 싶네요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인