XF 2.0 text when you hover over an image

ALMUSA

Well-known member
#1
I have a custom field for images to be displayed under user info/postbit and I'm wondering on how to make the image title/name/text whatever you call it appears when hovering over the image. Lets say you have an image of a car and you named the file Lexus for example; how would you make the word "Lexus" appears when hovering over the image.
 

AndyB

Well-known member
#2
Here's an example:

Code:
<img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" title="Google">
 

ALMUSA

Well-known member
#3
Here's an example:

Code:
<img src="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png" title="Google">
Thankx but I have around 200 images and Im not sure if I should apply that code to each image or I can just add something to the value displayed HTML box in custom user field.

It would much more convenient if I can add something to so code and will apply to all


HTML:
<img src="/path/to/image/{$value}.png" width=xx height=xx border="0" alt="{$value}">
 

ALMUSA

Well-known member
#4
It was missing the title part. Now its working. Thankx
<img src="/path/to/image/{$value}.png" width=xx height=xx border="0" alt="{$value}" title="{$value}">
 
Top