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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:03:56+00:00 2026-05-21T05:03:56+00:00

I have a mouseover and mouseleave on an image, that will hide or show

  • 0

I have a mouseover and mouseleave on an image, that will hide or show a div. All the images are in a class “imgmouse” and all the div’s are in a class “tri-bottom”, how can I write this jquery so the first tri-img will show and hide the first tri-bottom div and so on. So mouse over the first .imgmouse img and show div.triangle-rollover and mouseover the second .imgmouse img and show the second div.triangle-rollover??

Code:

        $('.imgmouse img, .tri-col td.tri-img span').mouseover(function() {
         $(".triangle-rollover").show();
    });
    $('.imgmouse img, .tri-col td.tri-img span').mouseleave(function() {
         $(".triangle-rollover").hide();
    });

this relates to this table:

<td class="tri-img"><img class="one" src="img/triangles/triangle33.png" alt="" ><span class="tri-val one">${StatsCube.parseInt(ChartData.PTS)}</span></td>
<td class="tri-img"><img class="two" src="img/triangles/triangle33.png" alt="" ><span class="tri-val two">${StatsCube.parseInt(ChartData.FGA)}</span></td>
<td class="tri-img"><img class="three" src="img/triangles/triangle33.png" alt="" ><span class="tri-val three">${StatsCube.parseInt(ChartData.TPA)}</span><span>%</span></td>
  • 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-21T05:03:57+00:00Added an answer on May 21, 2026 at 5:03 am

    You can use the index of the image being mouseover:

    $('.imgmouse img').bind('mouseover mouseout', function(e) {
        var index = $('.imgmouse img').index(this),
            $div  = $('.tri-bottom div').eq(index);   
        if(e.type == 'mouseout') {
            $div.hide();
        } else {
            $div.show();
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page with DIV s with a mouseover handler that is
I have a ListBox with a StackPanel that contains an image and label. <ListBox.ItemsPanel>
I have a really basic user control with a button that has an image.
I have a list of divs (simplified example) <div class=title>text</div> <div class=description>text</div> <div class=title>text</div>
I have this bit of script to widen a text box on mouseover and
I'm working with the following scenario: I have an image map with hotspots. When
I have some paths that are not inside any canvas, and I want to
I have implemented the following set up (after being requested): slideshow of images changing,
I have multiple DIVs containing an image in each. When I rollover these DIVs,
hi i have a function that worked fine using jQuery 1.3.2 but now 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.