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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:59:59+00:00 2026-05-31T04:59:59+00:00

i have a site in which I show the post text on mouseover the

  • 0

i have a site in which I show the post text on mouseover the image. But when mouse come over the post text, post text starts fluctuating(show or hide ver fast). Please help me to solve this problem.

To test, just take mouse over any image, then bring mouse near to post text. it starts effecting( show or hide the post text)

  • 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-31T05:00:00+00:00Added an answer on May 31, 2026 at 5:00 am

    I would suggest going to a more CSS approach. Here’s a quick JSfiddle with an example:

    http://jsfiddle.net/EuWCp/4/

    As mentioned in my comment above, the issue is because of the “onmouseout” and “onmouseover” events and how it sees the text that is over the image.

    The “onmouseover” even triggers when you hover over the image but hovering over text that is also over the image triggers the “onmouseout” event, which removes the text, which also triggers the “onmouseover” event because the mouse is (again) over the image. Which causes a loop and makes the image “flash” or fluctuate between these two states.

    The JSFiddle just wraps the image and a “caption” around an anchor tag (not much different from how you’re currently doing it). It then hides/displays the caption based on hovering.

    The CSS can be changed and cleaned up in different ways. For example, I just a static width/height on the container element (A tag). There’s different ways of doing this.

    Also, I simply did “display:none” and “display:block” for showing/hiding the caption. This isn’t very friendly to screen readers or SEO. It would be better to do a “left:-999em” and “left:0” on hover (popular drop-down menu method).

    There’s probably a good opportunity to use the FIGURE and FIGCAPTION HTML5 tags here too. And I used the RGBA css for a transparent background. This will run into old IE browser support issues. You can use other methods with PNG’s to get better backwards compatibility if you need it.

    Hope that helps.
    Cheers!

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

Sidebar

Related Questions

Our site's UI displays read-only text fields which have mouse-click handlers -- when the
I am relatively new to mod_rewrite, but have a site which I would like
I have a Django site in which I show a success message to the
I have a Wordpress site which has post ratings stored in the wp_ratings table,
I have a site which needs to be fully self-contained in the browser window,
I have a site which relies heavily on javaScript. I created a mirror site,
I have a site which I want to download using Unix wget . If
I have a site which has a lot of corners. I don't want to
I have a site which allows my customers to setup content for their customers,
I currently have a site which uses a MySQL 4.x schema, the site uses

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.