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

The Archive Base Latest Questions

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

I have a hidden div with class hidden_thing that is positioned in the center

  • 0

I have a hidden div with class hidden_thing that is positioned in the center of an image and then hidden using CSS visibility. I can switch it to visible with the following jQuery, but I have many images on the page with the same class cat_image_table. So how do I select on the currently rolled over image?

<script type="text/javascript">
$(document).ready(function(){  
    $('.cat_image_table').on("mouseenter", function(){
        $('.hidden_thing').fadeIn(300)
    });

    $('.cat_image_table').on("mouseleave", function(){
        $('.hidden_thing').fadeOut('slow')
    });
});
</script>

CSS:

.cat_image_table {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    width:255px;
    margin:0;
    padding:0;
    border-spacing:0;
    border:none;
    height:300px;
    overflow:hidden;
}

.hidden_thing {
   position: absolute;
   top: 130px;
   left: 50px;
   width:150px;
   height:30px;
   background: #EE1B2C;
   padding-top:5px;
   color:white;
   font-family:allerBold;
   font-size:20px;
   visibility:hidden;
}

PHP:

<div class="cat_image_table">

    <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES_CAT . $listing['products_image'], $listing['products_name'], 255, 340, 'class="cat_image_round"') . '</a>

</div>

<div class="hidden_thing">Click to View</div>

</div>
  • 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-31T12:10:00+00:00Added an answer on May 31, 2026 at 12:10 pm

    There needs to be some sort of structural relationship between each cat_image_table and its associated hidden_thing for this to be possible.

    Say hidden_thing were a child of the cat_image_table then you could do something like:

    $(document).ready(function(){  
        $('.cat_image_table')
            .on("mouseenter", function(){
                $(this).find('.hidden_thing').fadeIn(300);
            })
            .on("mouseleave", function(){
                $(this).find('.hidden_thing').fadeOut('slow');
            });
    });
    

    (It would help to post an example of your markup)

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

Sidebar

Related Questions

I have a funciton that I am currently using to show a hidden div.a_type
I have an animation on a partially hidden div container that will execute when
I have a bunch of images that are in a hidden div. The div
I have a layout that looks like this <div class=categoery> <span>categorie title</span> <table> <tr
I have a navigation that I made using CSS Sprites. The thing is I
I'm developing a mobile site for iPhone using jQuery. I have a hidden div
I have a hidden div which I reveal with the jquery fadein() method: $(#panel).fadeIn(slow);
I have a hidden div (#contactArea) above another div. When I click the link,
I am having jQuery animation issues... I have a footer with a hidden div
i have 3 hidden fields in 1 div. when I have reference to this

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.