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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:45:52+00:00 2026-06-02T16:45:52+00:00

Having issues trying to get this jquery code to work. The idea is that

  • 0

Having issues trying to get this jquery code to work. The idea is that the opacity should change when the image is highlighted. Right now it is using the smallartcov class tag to change the opacity. The issue is that there is some text on top of it. So the text counts as the mouse leaving the image area even though it never did. How can i get around this?

http://169.231.6.197/vathom/artist.php is where the test subject is being hosted. If you look @ the right most picture you can see what I mean. Here is the html we have on it:

<div class="artistg">
    <div class="smallartcov"></div><span class="smallarttxt">702</span>
    <img class="smallartpic" src="images/df.jpg" />
</div>  

along with the following jquery:

<script type="text/javascript">
$('.smallartcov').hover(function() {
    $(this).css('color', 'white');
    $(this).css('opacity', '0');
}, function() {
    $(this).css('color', 'white');
    $(this).css('opacity', '0.5');
});
</script>

Any ideas? Much appreciated.

  • 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-02T16:45:55+00:00Added an answer on June 2, 2026 at 4:45 pm

    Can you add hover for the text and control the opacity well. This would fix the issue you are facing. I have tested it by adding the below code,

    $('.smallarttxt').hover(function() {
        $('.smallartcov').css('color', 'white');
        $('.smallartcov').css('opacity', '0');
    }, function() {
        $('.smallartcov').css('color', 'white');
        $('.smallartcov').css('opacity', '0.5');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to get this query to work. I'm having issues with brackets I think.
I am trying to get MVC to work on IIS6 and am having issues.
I'm trying to get the jQuery UI autocomplete widget to work but I'm having
I have been trying to get this code to work for a while now
I'm just trying to get started with NDjango but am having issues running a
I'm trying to get started with twitter4r but I'm having some issues: Why I
I'm having some issues with my code maybe you could help? Jquery: [updated] <script>
I'm having issues trying to deserializing my xml string that was from a dataset..
I'm trying to put together this layout... ... but I'm having issues with the
http://tympanus.net/codrops/2011/09/05/slicebox-3d-image-slider/ I'm trying to implement Slicebox into my website and I'm having issues. I

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.