I currently have two links for a single image. One link is a thumbnail displayed on the screen, while the other link leads to the full-size version of the same image.
Is there a way I can implement a code that will darken the screen and display only the full-screen image when the user hovers over the image?
<div id= "1" class="thumbnail"><a href="/fullsizeimage.jpg"><img scr="/thumbnail.jpg"> </a></div>
<div id= "2" class="thumbnail"><a href="/fullsizeimage2.jpg"><img scr="/thumbnail2.jpg"> </a></div>
When the mouse hovers over the image:
- Fade the screen to black
- Display
Fullsizeimage.jpg
in the center of the screen