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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:33:17+00:00 2026-05-27T19:33:17+00:00

i know that it may be difficult to see the actual problem without looking

  • 0

i know that it may be difficult to see the actual problem without looking throughout the whole script, but i’m curious if its a little buggy for anybody who has done a hover function and use show and hide.

My problem is that sometimes my element wouldn’t show up, but when I move my mouse out and hover over again it shows. Its just not consistent of showing the element

$('.Item').hover(function(){
    var container = $(".show-element",this).attr("id");
    $('#'+container ).show();
},function(){
    var container = $(".show-element",this).attr("id");
    $('#'+container ).fadeOut(200);
});

<div class='Item'>
<div class='show-element' id='1'>Show</div>
<div id='1'>
some stuff
</div>

<div class='show-element' id='2'>Show</div>
<div id='2'>
some stuff
</div>
<!-- and so forth !-->
</div>

so this HTML shows a few div elements and my page has a while loop scripting through multiple elements.

Is there another way to do a hover a better way for consistency?

  • 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-27T19:33:18+00:00Added an answer on May 27, 2026 at 7:33 pm

    You most likely just need to stop and end the animation. Hovering off multiple times before the 200ms has expired can produce undesired effects.

    $('.Item').hover(function(){
        var container = $(".show-element",this).attr("id");
        $('#'+container ).stop(true, true).show();
    },function(){
        var container = $(".show-element",this).attr("id");
        $('#'+container ).stop(true, true).fadeOut(200);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that may sound silly, but I'm trying to submit a form on
Long version: Those familiar to the standardization nightmare of the RSS-family, may know that
may i know what integration technique that you folks use to implement external component
for website that embed flash to capture camera (red5..etc). may i know is there
I know that |DataDirectory| will resolve to App_Data in an ASP.NET application but is
Let me begin by saying this; I know that similar questions exist, but they
I know that this may sound like blasphemy to Lisp aficionados (and other lovers
I may be looking at this one the wrong way. I think that dynamically
I know that I can do something like $int = (int)99; //(int) has a
I know that default cron's behavior is to send normal and error output to

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.