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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:12:38+00:00 2026-06-16T10:12:38+00:00

I got a quick question. I’m making some sort of simple image gallery. I

  • 0

I got a quick question. I’m making some sort of simple image gallery.
I got a div with a picture in it. When I hover the div another small div will go from display:none to displaye:block so it shows up above the image with half opacity. This div contains some info about the image

the code:

<div class="box col6" 
onmouseover="document.getElementById('onhover').style.display = 'block';" 
onmouseout="document.getElementById('onhover').style.display = 'none';">

<div id="onhover" style="display:none;">THIS IS THE DIV THAT WILL SHOW UP ON HOVER OF BOX COL6</div>

<img src="img/final.png" width="762" height="601">
</div>

This all works fine. But now I want to do this for multiple div with images. It wont work by just copying this div because the onmouseover and out wont know which “onhover” div they got to change.

Does anybody know a solution?

  • 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-16T10:12:39+00:00Added an answer on June 16, 2026 at 10:12 am

    Use some CSS magic:

    <div class="box col6">
        <div class="onhover">
            THIS IS THE DIV THAT WILL SHOW UP ON HOVER OF BOX COL6
        </div>
        <img src="img/final.png" width="762" height="601">
    </div>
    

    CSS

    .box .onhover {display: none;}
    .box:hover .onhover {display: block;}
    

    Demo: http://jsfiddle.net/maniator/SLfK7/

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

Sidebar

Related Questions

I've got a quick question. In my grails project I am making some web
Just got a quick question, this is a simple thing to do via PHP
I've got one quick question. Is there any simple way to detect if .net
I have a (hopefully) quick question. I've got some stepper boxes. Though really this
I have a quick question. Say, I've got a string this string has some
I got a quick question: I want every link in the div to alert
Hey guys got a quick question here, how do i set up TweetStream after
I am newbie to .Net and I got a quick question. In my web
I have this quick question, i have got the username variable from a form
I asked this question earlier and I got very quick and helpful responses: Linq

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.