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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:52:36+00:00 2026-05-20T07:52:36+00:00

I currently have the following script: http://jsfiddle.net/oshirowanen/mnXdv/ Which works fine, i.e. if a click

  • 0

I currently have the following script:

http://jsfiddle.net/oshirowanen/mnXdv/

Which works fine, i.e. if a click on one of the navigations, it drops down, if the click on another, the existing dropdown disappears and the other dropdown appears, if i click anywhere on the document, whichever navigation is opened, will disappear.

How can I add a mouseover, so the other navigation automatically drops down, if another navigation is already dropped down. However, if no navigation is dropped down, to cause a dropdown, it must be clicked for it to dropdown, and so on.

  • 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-20T07:52:37+00:00Added an answer on May 20, 2026 at 7:52 am

    Possible solution:

    http://jsfiddle.net/mnXdv/8/

    Although I would favour using <ul>‘s with CSS styles to control the .active state, so the Javascript would become much simpler, something like:

    function makeActive(el) {
        $('.menu .active').removeClass('active');
        $(el).parent().addClass('active');
    }
    
    $('.menu li a').click(function() {
        makeActive(this);
    });
    
    $('.menu li a').hover(function() {
        if ($('.menu .active').length == 0) {
            return;
        }
        makeActive(this);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently Im have the following script which checks to see if a checkbox value
I have the following script currently, which gets the category IDs as arrays: $sql_select_categories
I have the following script, which when you click the image within the div,
I`m currently working on a script, and I have the following situation. function somnicefunction()
I have the following script: <script type=text/javascript> $(document).ready(function(){ document.write(<script type=\text/javascript\ src=\http://site.com/script.js\><\/script>); }); </script> When
I have the following code: <html> <head> <script src=http://www.google.com/jsapi type=text/javascript></script> <script type=text/javascript> google.load(jquery, 1);
I have the following jQuery script... $(function() { $('.eventWrapper').bind('click', function(event) { var srvName =
I have the following code. Currently it displays 2 tabs which show 2 separate
I am using the following script posted on this site: http://www.javascriptkit.com/script/...oundlink.shtml It works great,
I have following script that executes all the .reg files in the current directory.

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.