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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:28:35+00:00 2026-06-06T11:28:35+00:00

I want to show a a DIV on image / link hover and i

  • 0

I want to show a a DIV on image / link hover and i have written following code

   $("#NotificationSummary").hover(
      function () {
          $("#dvNotifications").slideDown();
      },
      function () {           

          $("#dvNotifications").slideUp();
      }
    );

DIV is showing on hover but when i move to div it hides, How can i stop div from hiding while mouse is over it

please view the demo http://jsfiddle.net/3hqrW/15/

  • 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-06T11:28:37+00:00Added an answer on June 6, 2026 at 11:28 am

    [reedit based on comment] jsfiddle revised, removed css-only solution. The trick is to monitor the hover state of the sliding element and use a timeout to allow the user to move over the slided element (see also comments in the updated jsfiddle).

    jsfiddle derived from OPs jsfiddle @here

    The hover function using your #ids:

    function hover(e){
     e = e || event;
     var el = e.target || e.srcElement
        ,showel = $('#dvNotifications')
     ;
     if (!/NotificationSummary/i.test(el.id)) {
      showel .attr('data-ishovered',/over/i.test(e.type));
     } else {
      showel .attr('data-ishovered',false)
     }
    
     if (/true/i.test(showel .attr('data-ishovered'))){return true;}
    
     if (/over$/i.test(e.type) && /NotificationSummary/i.test(el.id)){
        showel .slideDown();
     } else {
        setTimeout(function(){
            if (/false/i.test(showel .attr('data-ishovered'))) {
                showel .slideUp();
                showel .attr('data-ishovered',false);
            }
          }
        ,200);
     }
    

    }

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

Sidebar

Related Questions

I have an image and want to show a rollover popup div on hover
I have got the following code to show a dialog box when the image
I want to show hidden div on hover of <div class=thumb> and i have
I need a jquery slideshow with div popup i want to show my image
I have a div to show a message, I want the message to appear
I have a div that show 200 px. When I click on a image
I have a link tag for which I want to add a background image.
I have a background image that I want to show after the top header.
I have a project where I want to show a specific div (about the
I want to show a div that serves as a loading screen when invoking

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.