Image tooltips do not work: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
m (link to a newer version of an extension)
m (Removed note about an old bug)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Most likely, you are experiencing the situation where ALT attributes don't become tooltips when you hover over an image. This is because this way of handling ALT attribute is [http://www.w3.org/TR/html401/struct/objects.html#h-13.8 incorrect].  ALT text should only be shown as an ''alternative'' to the image, not ''as well as'' the image. To have the text display in the tooltip in all graphical browsers, the [http://www.w3.org/TR/html401/struct/global.html#h-7.4.3 TITLE] attribute should be used. Contact the site administrator to have it fixed.
Most likely, you are experiencing the situation where <code>ALT</code> attributes don't become tooltips when you hover over an image. This is because this way of handling <code>ALT</code> attribute is [http://www.w3.org/TR/html401/struct/objects.html#h-13.8 incorrect].  <code>ALT</code> text should only be shown as an ''alternative'' to the image, not ''as well as'' the image. To have the text display in the tooltip in all graphical browsers, the [http://www.w3.org/TR/html401/struct/global.html#h-7.4.3 <code>TITLE</code>] attribute should be used. Contact the site administrator to have it fixed.


From [http://www.w3.org/TR/html401/struct/objects.html#h-13.8 w3.org]:
From [http://www.w3.org/TR/html401/struct/objects.html#h-13.8 w3.org]:
<blockquote>Several non-textual elements [...] let authors specify alternate text to serve as content when the element cannot be rendered normally. Specifying alternate text assists users without graphic display terminals, users whose browsers don't support forms, visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display images, etc.</blockquote>
<blockquote>Several non-textual elements [...] let authors specify alternate text to serve as content when the element cannot be rendered normally. Specifying alternate text assists users without graphic display terminals, users whose browsers don't support forms, visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display images, etc.</blockquote>


If you want Firefox to show ALT attributes in tooltips, install the [http://www.extensionsmirror.nl/index.php?showtopic=242 Popup ALT Attributes] extension. Note that the extension has a current bug in that it disables the tooltip display of title attributes.<br>
If you want Firefox to show <code>ALT</code> attributes in tooltips, install the [https://addons.mozilla.org/en-US/firefox/addon/1933 Popup ALT Attributes] extension.<br>
You may alternatively install a user script titled [http://www.arantius.com/article/arantius/alt+tooltips+for+firefox/ ALT Tooltips For Firefox] in conjunction with the [http://greasemonkey.mozdev.org/ Greasemonkey] extension.
You may alternatively install a user script titled [http://greasemonkey-user-scripts.arantius.com/alt-tooltips-for-firefox ALT Tooltips For Firefox] in conjunction with the [http://greasemonkey.mozdev.org/ Greasemonkey] extension.


[[Category:Page display]]
[[Category:Websites]]

Latest revision as of 19:08, 7 April 2009

Most likely, you are experiencing the situation where ALT attributes don't become tooltips when you hover over an image. This is because this way of handling ALT attribute is incorrect. ALT text should only be shown as an alternative to the image, not as well as the image. To have the text display in the tooltip in all graphical browsers, the TITLE attribute should be used. Contact the site administrator to have it fixed.

From w3.org:

Several non-textual elements [...] let authors specify alternate text to serve as content when the element cannot be rendered normally. Specifying alternate text assists users without graphic display terminals, users whose browsers don't support forms, visually impaired users, those who use speech synthesizers, those who have configured their graphical user agents not to display images, etc.

If you want Firefox to show ALT attributes in tooltips, install the Popup ALT Attributes extension.
You may alternatively install a user script titled ALT Tooltips For Firefox in conjunction with the Greasemonkey extension.