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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:37:57+00:00 2026-06-02T21:37:57+00:00

I have a CSS3 Navigation Menu with no Javascript, I like how it is

  • 0

I have a CSS3 Navigation Menu with no Javascript, I like how it is right now but there is one problem and the users are getting bothered with it.

The problem is that when a user hover over a Menu Link the submenu pops up which is exacly what I want but If user move the mouse arrow away from the submenu or the menu link, its dispairs ULTRA fast. It’s very annoying and I have no Idea how to fix this, there is two solutions one way is to always show the submenu the other solution is that when a user hover out from the submenu the submenu should atleast wait 5-10 secs before disappearing and also if you hover out and hover back the submenu should stay. But I have no idea how to do it.

Here is the code and example try it out, any solutions is appreciated!

http://jsfiddle.net/nPdNd/ expand the result window in Jsfiddle to see the whole nav menu

Thanks in advance!

  • 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-02T21:38:02+00:00Added an answer on June 2, 2026 at 9:38 pm

    Example: http://jsfiddle.net/nPdNd/40/

    Using jQuery

    $(document).ready(function(){
        var clearli;
        $(".test").hover(function() {
            clearTimeout(clearli);
            $("ul#nav li").removeClass('current');
            $(this).addClass('current');
        }, function() {
            var getthis = $(this);
            clearli = setTimeout(function() {
               $(getthis).removeClass('current');
            }, 500);
        });
    });
    

    Changed CSS

    ul#nav li:hover > ul { to ul#nav li.current > ul {

    ul#nav li:hover > ul li a { to ul#nav li.current > ul li a {

    EDIT: I changed the selector due to a bug to .test and added class test to the <li>

    EDIT2: I feel stupid, I forgot to stop the timeout counter. Edited above.

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

Sidebar

Related Questions

Is there a way with Javascript or CSS3 to have the left and right
I have a navigation menu that has links with CSS3 transitions with a speed
I have a problem with CSS3 property for using my own fonts @font-face. In
I use IE7.js but it doesn't have CSS3 support. I use jQuery always in
I have a CSS3 transition which is smooth as silk in Chrome, but choppy
I have a CSS3 position transition that makes a dive slide from one side
Is there a way to have CSS3 transitions/animations for a div that's just been
I have a css3 boxflex layout in webkit, but for some reason, #main (the
i have a problem using css3 transitions how can i make the transition smooth
I have an HTML structure which has css3 inside e.g. @-webkit-keyframes,..etc Is there any

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.