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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:56:52+00:00 2026-05-27T16:56:52+00:00

I use those js files below: jquery-1.4.2.min.js include/jcarousel/lib/jquery.jcarousel.min.js include/mousewheel/jquery.mousewheel.js in my index.php file i

  • 0

I use those js files below:

jquery-1.4.2.min.js
include/jcarousel/lib/jquery.jcarousel.min.js
include/mousewheel/jquery.mousewheel.js

in my index.php file i got :

 jQuery(document).ready(function() {
jQuery('#mycarousel').mousewheel(function(event, delta) {
                    if (delta > 0)
                    {carousel.prev();}
                    else if (delta < 0)
                    {carousel.next();}
        });
jQuery('#mycarousel').jcarousel({

    size: mycarousel_itemList.length,
    itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback},
visible: 3,
btnNext: null,
 btnPrev: null,

});

});

I believe the problem is with

{carousel.prev();}
{carousel.next();}

I want to add mousewheel to my jcarousel but i cant find the appropriate function to be called when i scroll my wheel.
Please help me. Further information maybe requested. I’m doing on my own till now. 🙁

  • 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-27T16:56:53+00:00Added an answer on May 27, 2026 at 4:56 pm

    carousel.prev(); and carousel.next(); will not work as carousel is undefined. You need to specify a callback function in which you can then manually run the carousel functions.

    For Example:

    jQuery('#mycarousel').jcarousel({    
        size: mycarousel_itemList.length,
        itemLoadCallback: {onBeforeAnimation: mycarousel_itemLoadCallback},
        visible: 3,
        btnNext: null,
        btnPrev: null,
        // The callback function to run
        initCallback: mycarousel_initCallback,    
    });
    
    function mycarousel_initCallback(carousel) {
        // All code referencing the carousel in here.
        jQuery('#mycarousel').mousewheel(function(event, delta) {
            if (delta > 0)
                {carousel.prev();}
            else if (delta < 0)
                {carousel.next();}
            });
    
    }
    

    Read more here in this example: http://sorgalla.com/projects/jcarousel/examples/static_controls.html

    Hope this helps!

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

Sidebar

Related Questions

My website is built using php files. I use trade secret algorithms in these
I've got a use case where those indicators disturb the user interaction. Can I
Below there is a jQuery I use to add some entries in the DB.
I use jQuery ajax calls to ASP.Net web services (ASMX files) to update the
How can I use something like jQuery & PHP to reorder elements within an
I am trying to use Difflib.SequenceMatcher to compute the similarities between two files. These
Rails comes with RESTful resources out of the box, but do you use those
I am having trouble with some of my rubygems, in particular those that use
For those people that use NHibernate and similar stuff, why do you use it?
For those of us that like to use the graphical version of Vim or

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.