View Full Version : Alt command not working in Firefox


Geo.
04-11-2006, 11:41 AM
Hi,
I've been using Alt="blahblah" to label jpg images on my pages.
They seem to work ok (description comes up when cursor is placed over image) when using IE as a browser but zilch when using Firefox.
Is there something I can do to make this work in both browsers?
Thanks for any advice, G

maztrin
04-11-2006, 02:17 PM
Alt attribute is used to display alternate text (i.e. when
images are disabled)
in both IE and Mozilla.

What is different, that IE will display alt attribute like tooltip
when hovering mouse over
image, and Firefox will not (and it shouldn't). If you want this
behaviour you can use title="" attribute (works in both).
IE behaves like this - if both alt and title are set it will display
title as tooltip, if only alt is set, it will display its value.
Firefox displays only title as tooltip, never the alt.

Geo.
04-11-2006, 09:15 PM
Thanks Maztrin - I'm learning something new all the time! :)
Geo.

J to the izzosh
04-12-2006, 03:34 AM
Yeah, Microsoft totally ruined my day (one of them, anyway) again with that one. What happens if I want to define alternative text for an image in the case that it can't be displayed, but don't want an obnoxious tool tip to pop-up? What then, Microsoft? Ehhhh?