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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:54:05+00:00 2026-06-12T06:54:05+00:00

I have encountered an interesting issue I could not find posted elsewhere. Take a

  • 0

I have encountered an interesting issue I could not find posted elsewhere.

Take a look at this JSFiddle. I have a div that has 2 things occur when you hover over it: (1) It gains some CSS formatting via the :hover pseudo class, and (2) an overlay with some information about the image pops up on the bottom of the image (via jQuery).

This works just fine in all the modern browsers, but open it up in IE 7 or 8. Mouseover the frame. If you mouseout over the top of the frame, there are no problems — the overlay disappears and the CSS formatting gets removed. But if your mouse passes directly over the overlay while you’re mousing out, the :hover formatting stays. jQuery knows that you moused out because the overlay gets removed, but IE doesn’t because the CSS :hover formatting remains. Any thoughts?

  • 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-12T06:54:06+00:00Added an answer on June 12, 2026 at 6:54 am

    Seeing as you are already using jQuery for hover, I recommend changing your script to:

    $(document).ready(function() {
        $('#frame').hover(
            function() {
                $('#frame').addClass('hover').append('<div id="overlay">blah blah</div>');
            }, 
            function() {
                 $('#frame').removeClass('hover')
                $('#overlay').remove();
            }
        );
    });
    

    And then change your CSS from :hover to .hover on all relevant elements. As per this fiddle:

    http://jsfiddle.net/BZj2v/

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

Sidebar

Related Questions

Today I encountered interesting issue. That's what I have: 2 images with humanoids on
This is quite an interesting issue I'm having with z-indexes that I've never encountered
I encountered an interesting thing today that I have never noticed before. It appears
This is an interesting problem that I’ve not been able to solve yet. I
I have encountered this problem a few times, and am not able to figure
I have encountered an interesting issue on Windows 8. I tested I can represent
I have encountered an interesting issue in which I have my master trying to
I have encountered what appears to be a bug with the YAML parser. Take
I have encountered a most annoying problem that occurs on the PWD variable when
We have encountered a very strange class not found problem in our web app

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.