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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:56:34+00:00 2026-05-20T18:56:34+00:00

I have a vertical image gallery of this sort: <div class=image-container> <div class=nav> <div

  • 0

I have a “vertical” image gallery of this sort:

<div class="image-container>
    <div class="nav">
        <div class="next"><a href="info"><img src="arrow_trans.png" alt="Next" /></a>  
    </div>    

    <div id="vert-gallery">
        <div id="first-row" class="link-image"><img src="Image_1.png" /></div>
        <div id="second-row" class="link-image"><img src="Image_2.png" /></div>
        <div id="third-row" class="link-image"><img src="Image_3.png" /></div>
        <div id="first-row" class="link-image"><img src="Image_4.png" /></div>
    </div>
</div>

If I hover over any one of these images, I want a navigation arrow to appear. I’ve been using:

$(".link-image").hover(function() {
    $("div.nav").show();
    },

        function() {
    $("div.nav").hide();
});

This makes the navigation arrow appear over all the images (since they’re of the same class).

How can I make it only appear over the image I’m hovering over and not the other ones?

Edit

In my case, div.nav is part of image-container. I might have multiple containers on the same page.

  • 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-20T18:56:34+00:00Added an answer on May 20, 2026 at 6:56 pm

    Adding this to the selectors should work if the nav div is inside each of the link-image divs.

    $(".link-image").hover(function() {
            $("div.nav", this).show();
        },
        function() {
            $("div.nav", this).hide();
        }
    );
    

    JSFiddle Example

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

Sidebar

Related Questions

i have an image: <img onclick=Search() alt=searchPage style=vertical-align: middle; height=17px src=../../Stylesheets/search.PNG title=search /> and
I have a vertical menu (html list) with an arrow image (as a div).
I have a image with horizontal and vertical lines. In fact, this image is
I have a div in which I need a permanent vertical scrollbar. Sometimes the
I have two images next to each other in HTML. One image is taller
I have the following code which tries to combine a vertical mirrored image with
I have a wrapper positioned to center with an y-repeated background image: <body> <div
I have a Hscale for determining the vertical position of an image. The image
I am using Flex 4. I have created an image gallery with TileList When
I have a gradient image as a background for a table header(9x18pix). This image

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.