0

I have some <img>, like a gallery and a <span> tag below.

What I am trying to achieve is when I hover over one image to show some specific text on the same place each time. I have no idea how to do this one, even if it sounds simple!

Example

<img src="1">
<img src="2">
<img src="3">
<img src="4">

<span><span>

when I hover over img 1, I want the <span> to be like

<span> caption for img 1 </span>

when i hover over img 2,

<span> caption for img 2 </span>

...and so on

mplungjan
  • 169,008
  • 28
  • 173
  • 236
seesae
  • 21
  • 4
  • 1
    Can you enter some of your current code (the gallery) so we can see how he img/captions are structured – Deanmv Apr 09 '17 at 21:59
  • It doesn't sound simple at all to me :) Please, can you provide more details on what you are trying to do and also some code? Than we will be able to help you. – jotaelesalinas Apr 09 '17 at 22:00
  • @seesae: Please add some effort and code as shown in the [help] – mplungjan Apr 10 '17 at 08:13
  • better duplicate: http://stackoverflow.com/questions/12105214/display-text-on-mouseover-for-image-in-html – mplungjan Apr 10 '17 at 08:24

0 Answers0