Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

title tage to go along with alt tag in html_image.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
SammyK
Smarty n00b


Joined: 14 Jan 2004
Posts: 1

PostPosted: Wed Jan 14, 2004 4:41 pm    Post subject: title tage to go along with alt tag in html_image. Reply with quote

Currently, browsers such as Mozilla are unable to see alt tags in images. The html_image function only outputs alt tags. To make the alt tag visible in Mozilla, you must use a "title" tag in the img properties. Might I suggest having a title tag automatically created along side an alt tag when using the alt property in html_image?
Back to top
View user's profile Send private message
andre
Smarty Pro


Joined: 23 Apr 2003
Posts: 164
Location: Karlsruhe, Germany

PostPosted: Thu Jan 15, 2004 7:30 am    Post subject: Reply with quote

Just specify title="xyz" as parameter:
Code:
{html_image ... title="my title" alt="my alt"}


There's a difference between "alt" and "title":
- "alt" specifies an alternate text if - and only if - the image cannot be displayed for some reason (e.g. you disabled displaying images or it cannot be found on the webserver). "alt" is a required parameter (to be really HTML conform in the way W3C decided).
- "title" specified an title text which is mostly displayed as a tooltip when hovering the image. "title" is an optional parameter.

MSIE also displays the "alt" text also when hoving the image. Thats a feature (some say it's a bug) of IE.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP