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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:40:31+00:00 2026-06-10T03:40:31+00:00

I have a jQuery function func1 that works fine on document ready: $(document).ready(function ()

  • 0

I have a jQuery function func1 that works fine on document ready:

$(document).ready(function ()
{
   //func1 description is here
   ...
   $(func1);
}

also I have

$(function ()
{
            $("#my-ul a").hover(function ()
            {
               //do something on my-ul a hover
            });
            $("#my-ul a").mouseleave(function ()
            {
               //do something on my-ul a mouseleave
            });
});

and it works fine.

What I want as well is to stop func1 on my-ul a hover and start it again on my-ul a mouseleave (like you didn’t hover at all).

Browsing stackoverflow didn’t help me with the answer. I believe .stop() function should be used, but I had no luck to use it properly for my example.

Thank you.

Update:
Here is an jsFiddle example and I want to stop changing text when hovered on link and start changing the same way onmouseleave back.

  • 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-10T03:40:33+00:00Added an answer on June 10, 2026 at 3:40 am

    You could not cancel delay, you need to use setTimeout or serInterval instead.

    The code (THE DEMO):

    $(document).ready(function () {
        var terms = ["span_aaa", "span_bbb", "span_ccc", "span_ddd", "span_eee", "span_fff"],
            i = 0,
            intervalId = null;
    
        function rotateTerm() {
            $("#text-content").fadeOut(200, function () {
                $(this).text($('#text-slider .' + terms[i]).html() + i).fadeIn(200);
            });
            $("#title-content").fadeOut(200, function () {
                $(this).text($('#title-slider .' + terms[i]).html() + i).fadeIn(200);
                i == terms.length - 1 ? i = 0 : i++;
            });
        }
        rotateTerm();
        intervalId = setInterval(rotateTerm, 2000);
        $('#stop-on-hover').hover(function () {
            if (intervalId) {
                clearInterval(intervalId);
            }
        }, function () {
            intervalId = setInterval(rotateTerm, 2000);
        });
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this jquery function that works, except I need to add something. I
Here's the story... I have a jQuery function that does something, this function is
I have a jQuery function that replaces thumbnails with the main image. This is
I have a jQuery function - this is the response that is it is
I want to have a jquery function that will be activated when any checkbox
I have the following jquery function that submits to an iframe. The message sent
I have a jQuery function that shows a 'loading' image and disable the submit
I have a jQuery function that when a certain button is clicked it removes
I have a jQuery function that finds all the images nested in a container
my code is something like this: function func1() { document.getElementById(img).src=pic.jpg; ---stament2---; } document.getElementById(img).onerror=func2(); In

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.