최신글 페이징 질문입니다.

최신글 페이징 질문입니다.

QA

최신글 페이징 질문입니다.

본문

https://sir.kr/g5_skin/13444 


위 스킨을 사용했는데요,,

위에껀 한 페이지당 5개만 표시되더라구요,,

근데 저는 8개씩 표시하고싶어서요..



$(function() {
    $(".list_page + div > p > span:last-child").text(Math.ceil($(".list_page").children("li").size()/5));
    $(".list_page > li").slice(0,5).addClass("on");
    $(".list_page > li:nth-of-type(5n)").addClass("5n");
    $(".list_page + div > button").click(function() {
        var nav_list = $(this).parent("div").prev(".list_page");
        if($(this).is(":last-child")) {
            if(!$(nav_list).children("li:last").hasClass("on")) {
                $(nav_list).children("li.on:last").nextUntil(".5n").addClass("on").next(".5n").addClass("on");
                setTimeout(function() {
                    $(nav_list).children("li.on:first").removeClass("on").nextUntil(".5n").removeClass("on").next(".5n").removeClass("on");
                });
                var paging = ($(nav_list).children("li.on:last").index()+1)/5;
                $(this).siblings("p").children("span:first-child").text(Math.ceil(paging));
            }
        }
        else {
            if(!$(nav_list).children("li:first").hasClass("on")) {
                $(nav_list).children("li.on:first").prev(".5n").addClass("on").prevUntil(".5n").addClass("on");
                setTimeout(function() {
                    $(nav_list).children("li.on:last").removeClass("on").prevUntil(".5n").removeClass("on");
                });
                var paging = ($(nav_list).children("li.on:first").index()+1)/5;
                $(this).siblings("p").children("span:first-child").text(Math.ceil(paging));
            }
        }
		return false;
    });
});


 <?php
	echo latest("theme/schedule", 'blog', 100, 25);
?>



제가 사용한 코드는 위와 같습니다.. ㅠㅠ 모르겠어요

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 123,716 | RSS
QA 내용 검색

회원로그인

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