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 9101053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:01:18+00:00 2026-06-17T01:01:18+00:00

I am currently working on a site,that uses Sorgilla jquery jcarousel, there are two

  • 0

I am currently working on a site,that uses Sorgilla jquery jcarousel, there are two sliders working together.

var carousel_2;
jQuery(document).ready(function() {
jQuery('#right-carousel').jcarousel({
    start: 1, // Configuration goes here
    wrap: "circular",
    scroll: 1,
    auto:3,
    vertical:true,

    itemFirstInCallback: {
    onBeforeAnimation: function(carousel, item, index, action) {
        if (carousel_2) {
            carousel_2[action]();
        }



            }
        }
    });
});

jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
    start: 3, // Configuration goes here
    wrap: "circular",
    scroll: 1,
    auto:3,
    vertical:false,
    buttonNextHTML: null,
    buttonPrevHTML: null,
    initCallback: function(c) {
    carousel_2 = c;
}
});

});

This works as it should but I am wondering is it possible to add external controls with the set up I am using. Unfortunately Im quite new to jquery so still learning.

What Im looking to do is add buttons underneath the carousel that behave like pagination, here is an example…
http://truelogic.org/multicarousel.php
or http://www.skyports.com

here is the site im working on
http://hartyinternational.hailstormcommerce.com/

Ideally if I could get those pagination buttons working similar to above, itd be great.

I have this css set up underneath the carousel.

.jcarousel-pagination {
width:100px;
height:40px;
position:absolute;
right:100px;
bottom:0px;
background:#000;

}

.jcarousel-pagination a {
font-size: 75%;
text-decoration: none;
padding: 0 5px;
margin: 0 0 5px 0;
border: 1px solid #fff;
color: #eee;
background-color: #4088b8;
font-weight: bold; 
}

Here is some documentation… http://sorgalla.com/projects/jcarousel/

I was considering adding this code to the function inside initCallback: but unsure how to get it working or how to tell it what button represents what slide…

                jQuery('.jcarousel-pagination a').bind('click', function() {
            carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
            return false;
            });

Any help would be great, I know its a bit of a general question, but im not sure where to start
Thank you.

  • 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-17T01:01:20+00:00Added an answer on June 17, 2026 at 1:01 am

    Copy/Paste the below code on a temp web page, make sure that the page the Javascript points to your folder where they are located and this should work.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="../style.css" rel="stylesheet" type="text/css" />
    <!--
      jQuery library
    -->
    <script type="text/javascript" src="../lib/jquery-1.4.2.min.js"></script>
    <!--
      jCarousel library
    -->
    <script type="text/javascript" src="../lib/jquery.jcarousel.min.js"></script>
    <!--
      jCarousel skin stylesheet
    -->
    <link rel="stylesheet" type="text/css" href="../skins/tango/skin.css" />
    <title>Untitled Document</title>
    <style type="text/css">
    
    /**
     * Additional styles for the controls.
     */
    .jcarousel-control {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .jcarousel-control a {
        font-size: 75%;
        text-decoration: none;
        padding: 0 5px;
        margin: 0 0 5px 0;
        border: 1px solid #fff;
        color: #eee;
        background-color: #4088b8;
        font-weight: bold;
    }
    
    .jcarousel-control a:focus,
    .jcarousel-control a:active {
        outline: none;
    }
    
    .jcarousel-scroll {
        margin-top: 10px;
        text-align: center;
    }
    
    .jcarousel-scroll form {
        margin: 0;
        padding: 0;
    }
    
    .jcarousel-scroll select {
        font-size: 75%;
    }
    
    #mycarousel-next,
    #mycarousel-prev {
        cursor: pointer;
        margin-bottom: -10px;
        text-decoration: underline;
        font-size: 11px;
    }
    
    </style>
    
    
    
    <script type="text/javascript">
    
    // for #mycarousel
    function mycarousel_initCallback(carousel) {
        jQuery('.jcarousel-control a').bind('click', function() {
            carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
            return false;
        });
    };
    // end for #mycarousel
    
    // for #right-carousel
    function right_carousel_initCallback(carousel) {
        jQuery('.jcarousel-control-right a').bind('click', function() {
            carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
            return false;
        });
    };
    // end for #right-carousel
    
    
    jQuery(document).ready(function() {
    
    var carousel_2;
    
    jQuery('#right_carousel').jcarousel({
        start: 1, // Configuration goes here
        wrap: "circular",
        scroll: 1,
        auto:3,
        vertical:true,
        initCallback: right_carousel_initCallback,
        itemFirstInCallback: {
        onBeforeAnimation: function(carousel, item, index, action) {
            if (carousel_2) {
                carousel_2[action]();
                                                                                                          }
                                    }
                                          }
             });
    
    
    jQuery('#mycarousel').jcarousel({
        start: 3, // Configuration goes here
        wrap: "circular",
        scroll: 1,
        auto:3,
        vertical:false,
        initCallback: mycarousel_initCallback,
        buttonNextHTML: null,
        buttonPrevHTML: null,
    
    });
    
    });
    </script>
    
    
    </head>
    
    <body>
    
    <div id="mycarousel" class="jcarousel-skin-tango">
        <div class="jcarousel-control">
          <a href="#">1</a>
          <a href="#">2</a>
          <a href="#">3</a>
          <a href="#">4</a>
          <a href="#">5</a>
          <a href="#">6</a>
          <a href="#">7</a>
          <a href="#">8</a>
          <a href="#">9</a>
          <a href="#">10</a>
        </div>
    
        <ul>
          <li><img width="75" height="75" src="http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/75/199481072_b4a0d09597_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/57/199481087_33ae73a8de_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/77/199481108_4359e6b971_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/58/199481218_264ce20da0_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/69/199481255_fdfe885f87_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/70/229228324_08223b70fa_s.jpg" alt="" /></li>
        </ul>
    
        <div class="jcarousel-scroll">
          <form action="">
            <a href="#" id="mycarousel-prev">&laquo; Prev</a>
            <select>
              <option value="1">Scroll 1 item per click</option>
              <option value="2">Scroll 2 items per click</option>
              <option value="3">Scroll 3 items per click</option>
              <option value="4">Scroll 4 items per click</option>
              <option value="5">Scroll 5 items per click</option>
            </select>
            <a href="#" id="mycarousel-next">Next &raquo;</a>
          </form>
        </div>
    
      </div>
    
    </div>
    
    
    <!-- second one -->
    
    
    <div id="right_carousel" class="jcarousel-skin-tango">
        <div class="jcarousel-control-right">
          <a href="#">1</a>
          <a href="#">2</a>
          <a href="#">3</a>
          <a href="#">4</a>
          <a href="#">5</a>
          <a href="#">6</a>
          <a href="#">7</a>
          <a href="#">8</a>
          <a href="#">9</a>
          <a href="#">10</a>
        </div>
    
        <ul>
          <li><img width="75" height="75" src="http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/75/199481072_b4a0d09597_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/57/199481087_33ae73a8de_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/77/199481108_4359e6b971_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/58/199481218_264ce20da0_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/69/199481255_fdfe885f87_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg" alt="" /></li>
          <li><img width="75" height="75" src="http://static.flickr.com/70/229228324_08223b70fa_s.jpg" alt="" /></li>
        </ul>
    
        <div class="jcarousel-scroll">
          <form action="">
            <a href="#" id="mycarousel-prev">&laquo; Prev</a>
            <select>
              <option value="1">Scroll 1 item per click</option>
              <option value="2">Scroll 2 items per click</option>
              <option value="3">Scroll 3 items per click</option>
              <option value="4">Scroll 4 items per click</option>
              <option value="5">Scroll 5 items per click</option>
            </select>
            <a href="#" id="mycarousel-next">Next &raquo;</a>
          </form>
        </div>
    
      </div>
    
    </div>
    
    
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a jQuery script that will translate the site's text into
Am currently working on a site that uses a lot of cfwindow objects and
I'm currently working on a site that uses a slider at some point, but
I'm currently working on a site that uses ajax to load the content into
Currently, I am working on a site that uses PayPal to Checkout. I would
I made a web site that uses YUI 3 sliders . It was working
Im currently working on a site that you can upload large files.. on local
I'm currently working on a web site that will show kind a image gallery
I'm working on a site that sells various products. Currently we're presenting those products
I'm currently working on an ASP.NET site created by someone else. There is this

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.