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

  • Home
  • SEARCH
  • 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 7722695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:14:58+00:00 2026-06-01T04:14:58+00:00

Question about logics here: What’s the most elegant way to make the menu appear/disappear

  • 0

Question about logics here:

What’s the most elegant way to make the menu appear/disappear onmouseover/onmouseout?

See the following JsBin:

http://jsbin.com/owayeb/edit#source

The Menu is hidden by default.

If the user moves his cursor above the Link the showme() function gets called.

When the user moves his cursor away the hideme() functions gets called.

How would I get the Menu to persist while the user moves his mouse away from the Link to above the Menu?

Or is this all the wrong school of thought?

  • 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-01T04:14:59+00:00Added an answer on June 1, 2026 at 4:14 am

    Assuming this is for cascading navigation or something similar, I would do something like…

    <style type="text/css">
    ul#nav li {
        position: relative;
        height: 20px;
    }
    ul#nav li ul {
        display: none;
        position: absolute;
        top: 20px;
    }
    ul#nav li.selected ul { display: block; }
    </style>
    
    <ul id="nav">
    <li>
        <a href="#" title="Link">Link</a>
        <ul>
            <li><a href="#" title="">Hi There!</a></li>
            <li><a href="#" title="">Secone Nav Item</a></li>
            ...
        </ul>
    </li>
    </ul>
    

    Within the onmouseover state of your list items, you would add the .selected class to #nav thus causing all child UL’s to be displayed. Because the child UL elements are within ul#nav, your hover state will still be active while you’re rolling over the children.

    You’ll obviously need to tweak the CSS to match the desired look you want, but that’s the general idea. If you were using prototype js for example, your javascript would look something like…

    $$('#nav li').each(function(x) {
        x.onmouseover = function() { $(this).addClassName('selected'); }
        x.onmouseout = function() { $(this).removeClassName('selected'); }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've asked a question about this class before, but here is one again. I've
My question is about properly binding the property of one element to another. Here
everyone. I have a rookie question about the returning value in java. Here's my
Question about subclassing in matlab, under the new class system. I've got class A
Question about GridView sorting in VB.NET: I have a GridView with AutoGenerateColumns = True
Question about assignments and variables (* For example *) SP = SparseArray[{},5] or SP
one question about PHP Development. I am building up some Form Fields for Calculations.
eternal question about twoForms: frm02 frm02 = new frm02(); frm02.Text = Objects; ds02 =
small question about C++ replace function. I'm parsing every line of text input line
A question about inheritance in java... class Base { private int val = 10;

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.