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

The Archive Base Latest Questions

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

I have a web site with a jQuery slider that automatically slides when the

  • 0

I have a web site with a jQuery slider that automatically slides when the page is loaded. How can I get the slider to stop when the mouse hovers over it?

I’m using the following jQuery code:

  var my_jQuery = jQuery.noConflict(true);

  window.onload = function () {

        // added  by pesach

        var totalWidth=0;
        var numItems=0;
        my_jQuery('li', 'div#scroll_Bar').each (function() {

        totalWidth = totalWidth + my_jQuery(this).outerWidth() + 1;
        numItems = numItems + 1;

        });
        //alert(totalWidth * -1);

        my_jQuery('ul', 'div#scroll_Bar').width(totalWidth);
        var slidewidth = totalWidth - 960;
        //end of addition


        var container = $('div#scroll_Bar');
        var ul = $('ul', container);

        var itemsWidth = ul.innerWidth() - container.outerWidth();

        //$("div.sliderGallery ul li").hover(stop(true, true), stop(true, true));
        my_jQuery('ul', 'div#scroll_Bar').animate({'left' : slidewidth * -1}, numItems * 1000, 'linear');
        my_jQuery('ul', 'div#scroll_Bar').animate({'left' : 0}, numItems * 800, 'linear');


        my_jQuery('.slider', container).slider({
            min: 0,
            max: itemsWidth,
            handle: '.handle',
            stop: function (event, ui) {
                ul.animate({'left' : ui.value * -1}, 500),my_jQuery('ul', 'div#scroll_Bar').stop(true, true);
            },
            slide: function (event, ui) {
                ul.css('left', ui.value * -1),my_jQuery('ul', 'div#scroll_Bar').stop(true, true);
            }
        });

    };
  • 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-24T11:18:57+00:00Added an answer on May 24, 2026 at 11:18 am

    Possibly using the .stop() command?

    So after your 2 animate lines:

    my_jQuery('ul','#scoll_Bar').mouseover(function(){
        $(this).stop();
    });
    

    Also, there’s no point in having div before elements with an ID, so remove them:
    div#scroll_Bar

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

Sidebar

Related Questions

I have a web site in asp.net that uses a master page. In this
I'm using jQuery. I have website feature that does an ajax search and returns
I am using jQuery for a simple website and have a main page 'index.html'
We have developed a website that uses MVC, C#, and jQuery. In one of
Here's the setup. I have web site which is essentially a simple CMS. Here
I have a web site using apache httpd as the server and mysql as
I have a web site which I download 2-3 MB of raw data from
I have a web site running via IIS7 on Vista. The site is running
I have an IIS web site. This web site contains other web sites so
I'm using jquery to animate a bit my web site, but I'm having a

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.