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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:11:04+00:00 2026-05-27T11:11:04+00:00

I want to do this: If mouse is NOT on element1 AND element2, then

  • 0

I want to do this:

If mouse is NOT on element1 AND element2, then do this

I have a sliding menu. If the user mouseout of the menu area, the menu must close itself. The menu area is made up 2 separate elements : the title of menu and menu area, positioned beneath the menu.

I already found out how to mouseout the menu area.

$('#menu_area').bind('mouseout', function() {

    $(this).slideUp(1000);

    });

Now i want to do both: mouseout on menuarea AND menu titles.

Now the problem is that if i hover on menu titles, the menu area close itself and i don’t want it do it.

  • 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-27T11:11:05+00:00Added an answer on May 27, 2026 at 11:11 am

    Add a parent div or any other container for menu title and menu area. Write mouseout/mouseleave event for the parent control.

    Second approach is (this may not be clean)

    1. Write mouseenter event for title and menu controls. Try setting gloabl variables like ‘mouseOnTitle” or “mouseOnMenu” to true.
    2. Write mouseleave event and set the above global variables to falise. Use dleay to wait for few milliseconds and chek whether any of the global variable is true. If both are false, hide the menu
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I only want this function to run if .toolbar li does not have the
I have this div: <div class=inauguration-image> I do not want this text to display,
I want this to be on top... how can I do this and not
User Region Points Last_Updated 1 5 0 1-Nov-09 I want this row 2 1
I want to have a function executed once on mouseenter then on mouseleave I
I have the following script: $("tr.member_profile_comment_row_frame").mouseover(function () { $(this.element."img.member_profile_comment_show_delete_button").show(); }); $("tr.member_profile_comment_row_frame").mouseout(function () { $(this.element."img.member_profile_comment_show_delete_button").hide();
I want this url http://www.youtube.com/watch?v=dgNgODPIO0w&feature=rec-HM-fresh+div to be transformed to: http://www.youtube.com/v/dgNgODPIO0w with php.
I want this: http://jqueryui.com/demos/dialog/#modal-message to happend when you click on ClickMe. how to do
I want this for some conditional compilation code that will run in all IE's
I'm new to PHP and I want this code <option value= disabled=disabled>-------------</option> to be

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.