2026, 새로운 도약을 시작합니다.

탭별로 다른 게시판 채택완료

안녕하세요

탭별로 다른 게시판을 적용하려고 합니다.

다른 게시판으로 이동하는 형식이 아니고 하나의 페이지 안에서 특정 탭에만 다른 게시판을 적용할 수 있을까요?

적용하려는 게시판이 연혁게시판인데 연혁은 최신글이 없어서 쉽지가 않네요..

Copy




/*TAB CSS*/

ul.tabs {

    display: flex;

    justify-content: center;

    margin: 0;

    padding: 0;

    list-style: none;

    height: 70px;

    width: 100%;

}

ul.tabs li {

    margin: 0;

    padding: 0;

    height: 70px;

    line-height: 70px;

    overflow: hidden;

    position: relative;

    background: #eee;

    text-align: center;

}

ul.tabs li a {

    text-decoration: none;

    font-size: 1.25em;

    color: #000;

    display: block;

    width: 300px;

    outline: none;

}

html ul.tabs li.active  {

    background: #1186c9;

}

html ul.tabs li.active a {color:#fff}

/*Tab Conent CSS*/

.tab_container {

    overflow: hidden;

    width: 100%;

}

.tab_content {

    padding: 50px 0;

    text-align: center;

}





$(document).ready(function() {

    //When page loads...

    $(".tab_content").hide(); //Hide all content

    $("ul.tabs li:first").addClass("active").show(); //Activate first tab

    $(".tab_content:first").show(); //Show first tab content

    //On Click Event

    $("ul.tabs li").click(function() {

        $("ul.tabs li").removeClass("active"); //Remove any "active" class

        $(this).addClass("active"); //Add "active" class to selected tab

        $(".tab_content").hide(); //Hide all tab content

        var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content

        $(activeTab).fadeIn(); //Fade in the active ID content

        return false;

    });

});





    

    

        

        

            설립배경

            설립목적

            연혁

        

        

            

뭔가 쉬울 것 같으면서도 방법이 떠오르지가 않습니다...ㅠ

도움 부탁드립니다.

감사합니다.

답변 3개

채택된 답변
+20 포인트

iframe 또는 ajax로 해당 영역에 넣으시면 될듯 합니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

댓글을 작성하려면 로그인이 필요합니다.

Copy


    

        

        

            설립배경

            설립목적

            연혁

        

        

            

아래와 같이 입력하여 원하는 위치에 최신글로 불러오면 됩니다.

<?php echo latest('basic', 'gallery', 3, 23); ?>

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고