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

  • Home
  • SEARCH
  • 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 6198065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:55:56+00:00 2026-05-24T03:55:56+00:00

I am looking to create a carousel or scroll using jQuery, so far, I

  • 0

I am looking to create a carousel or scroll using jQuery, so far, I have tried to implement jcarousel to no avail, I looking to achieve the following,

enter image description here

basically I want to show a list of 6 items then scroll to the next 6, then scroll to the next 6 or back to the previous 6, there does not have to be 6 in the list, but every 6 products there should be a new stage to the scroll.

My markup looks like this,

HTML

<ul>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
        <a class="arrows">Prev</a>
        <a class="arrows next">Next</a>

CSS

.products ul { width:258px; margin:0px auto; overflow:hidden; text-align:center; }
.products ul li { width:95px; height:137px; float:left; margin-right:32px; margin-bottom:57px; border:1px solid red; text-align:left; }
.jcarousel-prev, .jcarousel-next { position:absolute; top:0px; left:0px; width:83px; height:80px; background:url(/media/images/prev-horizontal.png) no-repeat top left; }
.jcarousel-next { top:0px; left:329px; background:url(/media/images/horizontal-next.png) no-repeat top left;}

However jCarousel just creates all the li’s on the same line, I need 2 per line and 3 rows, then create a new section which I can scroll too, how would I go about this?

  • 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-05-24T03:55:58+00:00Added an answer on May 24, 2026 at 3:55 am

    You should make each li be the container of a group of six elements, which would be divs. (i believe that the jcarousel uses all the li elements it finds under the container you specify..)

    so

    Html

    <div class="container">
        <div class="products">
            <ul>
                <li>
                    <div>1</div>
                    <div>2</div>
                    <div>3</div>
                    <div>4</div>
                    <div>5</div>
                    <div>6</div>
                </li>
                <li>
                    <div>7</div>
                    <div>8</div>
                    <div>9</div>
                    <div>10</div>
                    <div>11</div>
                    <div>12</div>
                </li>
            </ul>
        </div>    
        <a class="arrows jcarousel-prev" id="prev">Prev</a>
        <a class="arrows next jcarousel-next" id="next">Next</a>
    </div>
    

    Css

    .container{position:relative;width:424px}
    .products{width:258px;overflow:hidden;margin:0px auto;position:relative}
    .products ul { width:258px; margin:0px auto; text-align:center;}
    .products ul li{width:258px;overflow:hidden;}
    .products ul li div{ width:95px; height:137px; float:left; margin-right:32px; margin-bottom:57px; border:1px solid red; text-align:left; }
    .jcarousel-prev, .jcarousel-next { position:absolute; top:0px; left:0px; width:83px; height:80px; background:url(/media/images/prev-horizontal.png) no-repeat top left; }
    .jcarousel-next { top:0; right:0; left:auto;background:url(/media/images/horizontal-next.png) no-repeat top left;}
    

    jQuery

    jQuery(".products").jcarousel({
        scroll: 1,
        initCallback: mycarousel_initCallback,
        buttonNextHTML: null,
        buttonPrevHTML: null
    
    });
    
    function mycarousel_initCallback(carousel) {
    
        jQuery('.jcarousel-next').bind('click', function() {
            carousel.next();
            return false;
        });
    
        jQuery('.jcarousel-prev').bind('click', function() {
            carousel.prev();
            return false;
        });
    }
    

    Demo at http://jsfiddle.net/gaby/NRKZK/

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

Sidebar

Related Questions

I was looking at the tutorial at http://jqueryfordesigners.com/jquery-infinite-carousel/ . I tried creating something similar
I am looking to create an expression tree by parsing xml using C#. The
I'm looking to create a many to many relationship using NHibernate. I'm not sure
I'm looking create a piece of jQuery logic that answers: Are there any tables
I am looking to create a site like photofunia.com where basically you can apply
I'm looking to create my own custom domain specific language that outputs HTML. Basically,
I'm looking to create a singleton in Delphi. I've done this before using older
I'm looking to create a rich-featured application using a client/server model, using WCF as
I'm using the jcarousel library (http://sorgalla.com/projects/jcarousel/) and wanted to use the vertical carousel, but
I am looking to create a query similar to the below using the Zend

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.