Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show image title text on hover?

I'm building a basic Wordpress website. This is the demo page I need help with:

http://irontemplates.com/wp-themes/ironband/photos/

When mouse is hovered over the image, I want it to show the title of the image before it says "View Image."

This is javascript or jQuery I'm assuming? Can anyone give me a sample code of how I would go about this?

like image 995
George McKenzie Avatar asked Mar 22 '23 01:03

George McKenzie


1 Answers

The View-Image is a new link to the real image, or the full sized image. Which can have the title of the image Just like this:

<a href="#" title="title to show">
  <img src="source/to/file.ng" alt="photo" />
</a>

This way, you will show the image title in the link..

like image 174
Afzaal Ahmad Zeeshan Avatar answered Mar 24 '23 14:03

Afzaal Ahmad Zeeshan