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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:21:14+00:00 2026-06-05T06:21:14+00:00

I am currently making a website that includes a menu navigation almost identical to

  • 0

I am currently making a website that includes a menu navigation almost identical to the one found at fotopunch.com only instead of pointing down it points up. Anyways, I wrote the code using jquery/javascript for the menu and it works but there is a small error which also occurs at the fotopunch site. When you move your cursor from one menu item to another and back repeatedly it messes up the display temporarily. Is there a way to fix this? I will include part of my javascript file so you can see what I do for each menu item.

$("div#menu .reps").hover(function() {
    //if the current slide is not reps
    if(current_slide != "reps"){
    //move the arrow to the corresponding position for the reps slide 
        $(".arrow").animate({"left":"135px"});//move the arrow
        //(test which slide it is.)
        if(current_slide == "clients"){
            //fade out & hide the current slide
            $(".clients_display").fadeOut().hide();//hide the current slide
            //show the reps slide & fade in
            $(".reps_display").fadeIn().show();//show the slide
            //the current slide is the reps slide
            current_slide = "reps";
        }
        else if(current_slide == "services"){
            //fade out & hide the current slide
            $(".services_display").fadeOut().hide();//hide the current slide
            //show the reps slide & fade in
            $(".reps_display").fadeIn().show();//show the slide
            //the current slide is the reps slide
            current_slide = "reps";
        }
        else{
            //fade out & hide the current slide
            $(".training_display").fadeOut().hide();//hide the current slide
            //show the reps slide & fade in
            $(".reps_display").fadeIn().show();//show the slide
            //the current slide is the reps slide
            current_slide = "reps";
        }
    }
});

I do this for each menu item (there are 4). I think the problem is when it fades out and fades back in because if it tries to do too much at the same time it is displaying 2 of the menu divs at the same time. I tried to add a timeout but was unsuccessful. What is the best way to fix this error? It is small enough to not be a big priority but it would be nice to have it work better. Thanks.

  • 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-05T06:21:15+00:00Added an answer on June 5, 2026 at 6:21 am
    if(current_slide == "clients"){
    
                $(".clients_display")stop(true, true).fadeOut().hide();
    
                $(".reps_display").stop(true, true).fadeIn().show();
    
                current_slide = "reps";
    
            } else if(current_slide == "services"){
    
                $(".services_display").stop(true, true).fadeOut().hide();
    
                $(".reps_display").stop(true, true).fadeIn().show();
    
                current_slide = "reps";
            } else{
    
                $(".training_display").stop(true, true).fadeOut().hide();//hide the current slide
    
                $(".reps_display").stop(true, true).fadeIn().show();//show the slide
    
             }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently making a website that includes a menu navigation almost identical to
i'm currently making search engine for a website content (only for searching within that
I have a website that I'm making that needs a background resizer. Currently, I
I am currently building an making my new website. It uses one page and
I am currently making an app and website. Is there a system around that
I am currently making a website that returns quite a few xml types and
I'm currently making an iPhone app that has PDF viewing a crucial part of
I'm currently making some system that will gather statistical reports from different sites, for
I'm currently making a PHP-program that solves equations. I've divided the input equation into
I have a website: parisforaweekend.com with a 'subscribe' button-image that changes color on mouseover.

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.