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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:50:16+00:00 2026-05-23T12:50:16+00:00

I have a navigation menu where in menu hotels, a slide down panel is

  • 0

I have a navigation menu where in menu “hotels”, a slide down panel is implemented.
This is the script:

 $(document).ready(function(){

    $(".HotelPaneltrigger").mouseenter(function(){
        $(".panel").slideDown("slow");
        //$(this).toggleClass("active"); return false; 
    });

    $(".panel").mouseleave(function(){
        $(this).slideUp("slow");
    }); 
});

Now, i have 2 problems:
.HotelPaneltrigger fires the panel (.panel) to slide down
the panel slides up as soon mouse leaves the .panel area

1st problem: hovering between my “HotelPaneltrigger” & “.panel” will result that the panel slides up and down multiple times, as both functions are executed as long user hovers between both elements.

2nd problem: panel is defined to slide up as soon user leaves “.panel” area

What solution to you recommend to:
slide down panel on “HotelPaneltrigger” and stay open as long user is in “HotelPaneltrigger” + “.panel” area.. and closes when hovering away from them?

I need to avoid multiple slide up and down of panel, while closing it when user moves away from the triggering link… not the .panel area

Your input is appreciated

The menu code i use:

        <ul class="primary_nav">  

                <li class="active"><a href="link to.php" class="hoverBtn">Link 1</a></li>
                <li class="HotelPaneltrigger"><a href="#" class="hoverBtn">Hotels</a></li>
                <li><a href="#" class="hoverBtn">Link 3</a>
                    <ul class="subnav">  
                        <li><a href="link to.php">Link 4</a></li>
                        <li><a href="link to.php">Link 5</a></li>
                    </ul>           
                </li>
                <li><a href="#" class="hoverBtn">Link 6</a>
                    <ul class="subnav">  
                        <li><a href="link to.php">Sub 1</a></li>
                        <li><a href="link to.php">Sub 2</a></li>
                        <li><a href="link to.php">Sub 3</a></li>        
                    </ul>
                </li>               

                <li class="last"><a href="link to.php" class="hoverBtn">Specials</a></li>           
        </ul>
  • 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-23T12:50:16+00:00Added an answer on May 23, 2026 at 12:50 pm

    Working example: http://jsfiddle.net/xmtpu/

    Basically since its for a menu you put the panel inside the trigger and put both event handlers on the trigger. Because the panel is a child you are still “entering” on the tirgger even when your mouse is over the panel.

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

Sidebar

Related Questions

I have configured my zend navigation menu like Config: http://pastebin.com/B212uWKz public function _initNavigation() {
I have a page which work like a navigation and a iframe in this
I have navigation menu. When clicked, only page content div should be updated from
I have a navigation menu which contain sub menus. On hover I want the
I have a navigation menu provider that I am trying to move over to
I have a navigation drop-down at the top of a theme I have developed.
We're using jstree for a navigation menu editor, and have been assigning metadata to
I have a navigation view with a cell that has something as simple as
We have a custom navigation webpart that uses the PortalSiteMapProvider of MOSS to build
I have a small tabbed navigation setup using CSS. When hovering over the tabs

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.