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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:15:56+00:00 2026-06-05T07:15:56+00:00

I have been trying to tune up a menu slideshow and have part of

  • 0

I have been trying to tune up a menu slideshow and have part of my code shown below which I have for each of the 4 items in the menu respectively. I made it so if you move your cursor over a given menu item the corresponding div is shown in the display. I also added a timeout so if you moved from one menu item to another quickly it doesn’t switch from one div to another very quickly. The question I have now to make it work exactly as desired is how do I make it so that it checks whether the cursor is still hovering over a given menu item after 200 milliseconds for example before switching to that menu item? Any comments or help is appreciated. Thanks.

$("div#menu .reps").hover(function() {
    window.clearTimeout(timeoutID);
    timeoutID = window.setTimeout(hoverFunctionReps, 280);
});

function hoverFunctionReps(){
    if(current_slide != "reps"){

        $(".arrow").animate({"left":"135px"});

        if(current_slide == "clients"){
            $(".clients_display").stop(true,true).fadeOut().hide();
            $(".reps_display").fadeIn().show();
            current_slide = "reps";
        }
        else if(current_slide == "services"){
            $(".services_display").stop(true,true).fadeOut().hide();
            $(".reps_display").fadeIn().show();
            current_slide = "reps";
        }
        else{
            $(".training_display").stop(true,true).fadeOut().hide();
            $(".reps_display").fadeIn().show();
            current_slide = "reps";
        }
    }
}
  • 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-05T07:15:57+00:00Added an answer on June 5, 2026 at 7:15 am

    Perhaps something like this:

    http://jsfiddle.net/lucuma/ZgNKG/

    var timeoutID;

    $(document).ready(function() {
    $("a").hover(function() {
        window.clearTimeout(timeoutID);
        $(this).data('hashover', '1');
        var that = this;
         timeoutID=window.setTimeout(
            (function() {
            hoverFunctionReps(that); 
            }), 280);
    
    }, function() {
        $('span', this).hide();
       $(this).data('hashover', '0');
    });
    
    function hoverFunctionReps(me) {
        if ($(me).data('hashover') == '1') {
            $('span', me).show();
        }
    }
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to create a ListView which I can sort using drag
I have been trying something which may turn to be impossible in the end.
I have been trying to write a style sheet for the following documents which
Have been trying on these codes and I want to send a email which
I have been trying to develop an app for my ipad which i can
Have been trying to write an awk script which processes a log file, but
I have been trying out some different ways to organize my code in my
Have been trying to find the error in one line of code. Return expected
I have been trying to get this code to work for a while now
I have been trying to write an basic authentication system as part of 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.