Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8867159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:57:49+00:00 2026-06-14T16:57:49+00:00

I am building a one-page website and for the Portfolio section I will be

  • 0

I am building a one-page website and for the Portfolio section I will be having some content(e.g 4 thumbnails) with projects, and each one will display html content using fancybox.

So I want to have two arrows, on each side going back and forth that will display more of the portfolio content but I am not sure how I should build this? It is a really common effect on portfolio websites, and is followed by a transition when the content changes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:57:51+00:00Added an answer on June 14, 2026 at 4:57 pm

    Just a quick disclaimer… but this is certainly not the most seamless solution out there. It was just a quick solution I came up with from scratch for a problem similar to yours. Just one of the many ways to do it.

    This is also based on the functionality here, but has been trimmed down quite a bit:
    https://www.facebook.com/Bio35/app_201742856511228

    Javascript (will need jQuery in the headers prior to this)

    $(document).ready(function() {
    $.ajaxSetup ({
        cache: false
    });
    
    var loadUrl = "scripts/item-loader.php";
    
    page = 1;
    total_pages = /* total number of pages, calculated dynamically or otherwise */;
    prev_arow = "#left_arrow";
    next_arow = "#right_arrow";
    
    $(prev_arow).hide();
    $(".hide").hide();
    
        $(prev_arow).click(function() {
            prev_page = page - 1;
            $("#wrapper"+page).fadeOut("normal", function() {
                $("#wrapper"+prev_page).fadeIn("slow");
            });
            if(prev_page == 1) { $(this).hide(); }
            if(page == total_pages) { $(next_arow).show(); }
            page--;
        });
        $(next_arow).click(function() {
            next_page = page + 1;
            $("#wrapper"+page).fadeOut("normal", function() {
                $("#wrapper"+next_page).fadeIn("slow");
            });
            if(page == 1) { $(prev_arow).show(); }
            if(next_page == total_pages) { $(next_arow).hide(); }
            page++;
        });
    
        $("#thumbs div div").click(function() {
            var my_id = $(this).attr('id');
            $("#product_wrapper").load(loadUrl, {product: my_id}, function() {});
        });
    });
    

    HTML

    <div id="product_wrapper">
    <!-- display format goes here -->
    </div>
    
    <div id="bottom_wrapper">
        <div id="left_arrow">
        </div>
        <div id="thumbs">
            <div id="wrapper1">
                <div id="p1"><!-- thumbnail --></div>
                <div id="p2"><!-- thumbnail --></div>
                <div id="p3"><!-- thumbnail --></div>
            </div>
            <div id="wrapper2" class="hide">
                <div id="p4"><!-- thumbnail --></div>
                <div id="p5"><!-- thumbnail --></div>
                <div id="p6"><!-- thumbnail --></div>
            </div>
            <div id="wrapper3" class="hide">
                <div id="p7"><!-- thumbnail --></div>
                <div id="p8"><!-- thumbnail --></div>
                <div id="p9"><!-- thumbnail --></div>
            </div>
        </div>
        <div id="right_arrow">
        </div>
    </div>
    

    In the jQuery, "scripts/item-loader.php" is basically the AJAX file that reflects the same format as <!-- display format goes here --> from the HTML. It simply retrieves the POST value of product, used in the AJAX call toward the end of the Javascript, and spits out the information for the selected item.

    Hopefully the code speaks for itself enough. If you need clarification, let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building some basic HTML code for a CMS. One of the page-related
I'm building a small-scale website (a personal one) in which each page would have
I am currently building an making my new website. It uses one page and
I am currently building a website in codeigniter that is one page site, basically
i am building a one page layout website. now i would like the class=footer-bar
I am building a website that will have hundreds of pages. Each of these
I am building a website specifically for mobile devices. There is one page in
I'm building an ASP.NET website and I'm puzzled with the behavior of one page,
I'm building a one pager website. Eg. every page (5 in total) is on
I'm building a portfolio website and want to implement a skill set page which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.