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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:31:22+00:00 2026-05-14T20:31:22+00:00

I have a mouseover and a mouseout event on a menu, that shows/hides a

  • 0

I have a mouseover and a mouseout event on a menu, that shows/hides a drop down menu.

This drop down menu has some other menu items, and I wish to (when clicked) to remove the mouse out event on the target that showed the menu. But once another target is clicked I wish to enable this event again. I hope I explained it well.

This is the JavaScript:

$(document).ready(function () {
    $("#menu ul > li").not(".parenttocurrent").not(".current").mouseover(function () {
        $(this).find(".menu_content").stop().fadeTo('fast', 1).show();
    }).mouseout(function () {
        $(this).find(".menu_content").stop().fadeTo('fast', 0, function () {
            $(this).hide();
        });
    });
});

I need to stop that event on mouseout, if one of the items is clicked. You can see a demo here: http://arcticbusinessnetwork.com.web18.curanetserver.dk/home.aspx

  • 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-14T20:31:22+00:00Added an answer on May 14, 2026 at 8:31 pm

    Make the event-handler functions seperate (non-anonymous) functions and use bind to bind them and unbind to unbind them again.

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

Sidebar

Related Questions

I have some code that adds mouseover events and mouseout events to all 'a'
i have script like this $('.parent a').live('mouseover mouseout', function(event) { if (event.type == 'mouseover'){
I have 2 event handlers: Y.all(.ptl).on(mouseover, handleOverlay); Y.all(.ptl).on(mouseout, handleOverlay); And I would like to
I have this code: $(div[id^='intCell']).mouseover(function() { $(this).css({ border:,1px solid #ff097c}); }).mouseout(function() { $(this).css({border:,1px solid
I have a site with three tabs that I'm trying to dynamically add mouseover/mouseout
I currently have a mouseover/mouseout event - I want to show a div after
I have created a simple drop down menu, with functions in it. And then
I have 2 div tags which emulate a drop-down menu. When the outer div
So I have a movieclip in my flash that has an event listener that
I have a website which uses jQuery and lots of mouseover / mouseout effects.

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.