X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Alt Text Not Appearing in Firefox (https://forum.x-cart.com/showthread.php?t=52658)

JeanB 03-05-2010 12:48 AM

Alt Text Not Appearing in Firefox
 
Hi All,
This could be a simple solution, but I can't for the life of me figure it out!

For each product, I have changed the "extra fields" module to display icons, rather than text.

This is in IE8, where the alt for the image appears. (I need the 'alt' as a quick-reference for what the icon means).

http://i16.photobucket.com/albums/b49/BeanJardo/Work/150iealt.jpg

However, in Firefox & Safari, it doesn't appear?

Firefox displays all other 'alt' text on the site, just not this one!?!


This is the image reference:

<img src="skin1/images/{$v.field_value}.png" width="40" height="40" alt="{$v.field_value}" />


Many thanks,

JeanB :)

Shamun 03-05-2010 03:20 AM

Re: Alt Text Not Appearing in Firefox
 
It's not displaying alt text in firefox because firefox is compliant with standards. For it appearing sometimes there is very likely a reason but I am unable to have it done.

Quote:

The alt attribute specifies alternate text that is rendered when the image cannot be displayed (see below for information on how to specify alternate text ). User agents must render alternate text when they cannot support images, they cannot support a certain image type or when they are configured not to display images.

See here: http://www.w3.org/TR/html4/struct/objects.html

You should rather opt for javascript or css tooltips.
http://trentrichardson.com/examples/csstooltips/

Regs 03-05-2010 07:25 AM

Re: Alt Text Not Appearing in Firefox
 
Try using the title="" attribute in addition to the alt="" attribute.

JeanB 03-05-2010 07:35 AM

Re: Alt Text Not Appearing in Firefox
 
Tal - Quite an interesting point. I might look into the tool-tip idea. Thanks.

Regs - Many thanks for the "title" suggestion. Works like a charm! :)

jdiehl 03-05-2010 12:53 PM

Re: Alt Text Not Appearing in Firefox
 
Alt text is not supposed to show, like you displayed. You were thinking it was broken in FireFox because it didn't display, where as in reality it was broken in Internet Exploder because it WAS displaying, LOL. That's what makes messing with IE so difficult sometimes :)

Tal showed the quote about how the Alt tag is supposed to work, and if you read further on the same link he provided it explains the Title tag:

Quote:

Values of the title attribute may be rendered by user agents in a variety of ways. For instance, visual browsers frequently display the title as a "tool tip" (a short message that appears when the pointing device pauses over an object). Audio user agents may speak the title information in a similar context. For example, setting the attribute on a link allows user agents (visual and non-visual) to tell users about the nature of the linked resource

Don't you love IE for making things confusing :) It's not really handy to have things work regardless, it's better to have it work based off of standards so that it's a standard for all, that is what "standards" mean after all.

cflsystems 03-05-2010 01:02 PM

Re: Alt Text Not Appearing in Firefox
 
MS is too big to obey standards - they make their own standards :)

Regs 03-07-2010 05:01 PM

Re: Alt Text Not Appearing in Firefox
 
The reality is that everyone should be using alt AND title attributes on their images that have meaning.


All times are GMT -8. The time now is 07:26 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.