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

The Archive Base Latest Questions

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

can i use setInterval twice in .hover()? is yes how is it possible?? wht

  • 0

can i use setInterval twice in .hover()? is yes how is it possible??

wht i have in .hover is::

  var target = evt.target; 

      if (target.timer) {
        clearTimeout(target.timer);
        target.timer = null;
      }
      target.timer =  setInterval(function() {  
                    $('.'+item).addClass(item+'-    over2');},
                    500,
                    function() {$('.'+item).removeClass(item+'-over2');},1000);$('.'+item).addClass(item+'-over1');

Now inside this hover, i need to set another time delay to remove both classes -over1 and -over2

How is this possible??

Any help is highly appreciable

  • 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-18T10:47:56+00:00Added an answer on May 18, 2026 at 10:47 am

    You can use several setTimeout or setIntervall after each other, but each will return it’s own handler so you need seperate variables to store them if you need to reference them.

    But remember, setIntervall starts a repeating call to the method that will be called repeatedly every intervall.

    So for hiding some popup you probably want setTimeout.

    Alternative jQuery methods:

    http://api.jquery.com/category/effects/

    http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery

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

Sidebar

Related Questions

I can use File('foo.bar').abspath to get the location of a file, but if I've
I can use SELECT * FROM table WHERE id IN (478,278,190,890,123) to return a
How can use the key argument for the min function to compare a list
We can use standard C library routines in standalone micro-controller programming but we cant
In smarty templates you can use raw PHP code in a template by placing
I know that I can use RaiseEvent to raise an event, like raise a
I know that I can use the type string as: string someString = This
I'm working on an iOS metronome web app. Since mobile Safari can only play
I have a process as follows: User does a complex search that is done
So, this is a pretty simple sounding question, but I'm interested in other peoples

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.