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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:23:23+00:00 2026-05-28T07:23:23+00:00

I have jQUery code: setInterval(function() { var grayarrow = jQuery(ul#dropdowngray).parent(); var greenarrow = jQuery(ul#dropdown).parent();

  • 0

I have jQUery code:

setInterval(function() {

    var grayarrow = jQuery("ul#dropdowngray").parent(); 
    var greenarrow = jQuery("ul#dropdown").parent();

    grayarrow.effect('shake', { times:2 }, 100);
    greenarrow.effect('shake', { times:3 }, 200);

    jQuery("ul#dropdowngray").parent().hover( 

        function (){ grayarrow.stop().effect('shake', { times:0 }, 100); },

        function (){ grayarrow.stop().effect('shake', { times:2 }, 100); }

    );

    jQuery("ul#dropdown").parent().hover( 

        function (){ greenarrow.stop().effect('shake', { times:0 }, 100); },

        function (){ greenarrow.stop().effect('shake', { times:2 }, 100); }

    );

}, 5000);

To see the effect: http://mainstreetfinancing.com.s136249.gridserver.com/frequently-asked-questions-direct-lender-net-lender.html

However, when I hover over the element, the shaking continues to execute. Originally, I had code:

jQuery("ul#dropdowngray").parent().hover( 

            function (){ grayarrow.stop(); },

            function (){ grayarrow.stop(); }

        );

BUT, since this was not working either, I implemented the solution discussed here: jquery .stop() not working

How can I effectively make the shaking stop when the mouse is over the shaking element?

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-05-28T07:23:24+00:00Added an answer on May 28, 2026 at 7:23 am

    To stop immediately you need to pass 2 argements (clearQueue:true, jumpToEnd:true) into stop() call, see http://api.jquery.com/stop/. Also you should set a variable to control the setInterval call so that when you mouse is hovered on the element it should return immediately. Here is the code. To see the effect, go to http://jsfiddle.net/BT4bt/

    var stopShaking = false;
    
    
    var shakeIt = function() {
        $('#shaker').effect('shake', { times: 6 }, 100);
    }
    
    setInterval(function() {
        if (stopShaking) {
            return;
        }
        shakeIt();
    }, 5000);
    
    $('#shaker').hover(function(){
        $(this).stop(true, true);
        stopShaking = true;
    }, function(){
        stopShaking = false;
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following jquery code: $(.rotateNews).load(/load_news.php); var refreshId = setInterval(function() { $(.rotateNews).load('/load_news.php?newsID='); },
I have some jQuery code similar to this: var refreshStuff = setInterval(function() { $.ajax({
I have this jquery code: $(document).ready(function() { function slideSwitch() { var $active = $('#slideShow
I have some jQuery code. I have called an Ajax function file, file.php, that
I have some jQuery code that intercepts links clicked on a page: $(document).ready(function() {
I'm having a problem. I have this code: setInterval(function() { $.ajax({ url: url, success:
I have this jquery code: $('#fr_tab').click(function() { $(#tab2).empty().html('<img src=images/loading.gif />'); var handle = setInterval(function
I have the following jquery code $(document).ready(function() { //Default Action $(#playerList).verticaltabs({speed: 500,slideShow: false,activeIndex: <?=$tab;?>});
I have a jQuery script that runs a function every second with setinterval. But
I have the following jQuery extension: var particleTimer = 0; jQuery.fn.particleEmitter = function (num,

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.