Creating a Drop-Down Menu with Javascript

Posted by iceteea on Stack Overflow See other posts from Stack Overflow or by iceteea
Published on 2012-04-02T16:20:49Z Indexed on 2012/04/02 17:29 UTC
Read the original article Hit count: 158

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about css