Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > HTML "alt" code does not have rollovers View modes: 
User avatar
Member
Member
sentile-oldsecond - 4/16/2013 4:16:14 PM
   
HTML "alt" code does not have rollovers
I am trying to get alt tag rollovers to an image on my page just like how you can see it on this HTML tutorial.
http://www.thunderdata.com/website_business_101/images_alt_tags.html


You see how if you rollover the image in that page you see popup tag words.

The image I want to tag is the small square photo at the bottom-middle of our homepage:
www.oldsecond.com (the one of the green landscape and sky)
Here is the code I used for it:
<img src="/OldSecond/media/graphics/go_green_80px.jpg" alt="bank statements, electronic" style="width: 80px; height: 80px;" />


But when I rollover it, nothing happens. What code can I use to fix the problem?

User avatar
Kentico Consulting
Kentico Consulting
richards@kentico.com - 4/17/2013 1:10:59 AM
   
RE:HTML "alt" code does not have rollovers
Hi,

I think that you have mistaken the "alt" atribute with the "title" attribute. The "alt" atribute is used when a image source cant be read (image does not exists) so it is loaded as alternative. The title hovewer shows then you hover over the image to see some description.

The "alt" attribute is also mandatory for images so you should keep it. Just try adding the "title" attribute as follows:

<img src="/OldSecond/media/graphics/go_green_80px.jpg" alt="bank statements, electronic" title="bank statements, electronic" style="width: 80px; height: 80px;" />


Let me know if that is what you were looking for.

Kind regards,
Richard Sustek