Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>tool tips, alt tags, and javascript

tool tips, alt tags, and javascript

esthera
02-03-2005, 09:05 PM
I noticed alt tags do not work in firefox -- to show a tooltip when the mouse is over the image.

Is there another way to do this that works in firefox?

WillGibson
02-03-2005, 09:10 PM
title="blah"

works for most things

GB Joe
02-03-2005, 10:11 PM
Without wanting to sound like a fanatic (although I am a recent convert), I think FF actually does it right...

The alt text is meant to help with accessibility by displaying a suitable "alternative" to the image if it's not displayed for some reason. As an example, if you used an image for a button saying "NEXT" then it's probably sensible to set alt="NEXT".

The title should be used for the tool-tip. This is more along the lines of helpful instructions, so in this case you might go for title="Click to see the next whassname". Personally I like to use this for comedy whenever possible, but that's probably frowned upon by sticklers.

I think you'll find that if you include both then FF and IE will behave in the same way. IE just pounces on the alt text if there's no title, which is a bit of a shame really.

Hope this was helpful... somebody stop me if I've got it wrong! ;)

Joe.


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

can not call click() in Firefox or Mozilla
Trouble with Status/Progress Window
test for i.e. less than v5.5
HELP!! Browser Detection with JScript
Window.Opener.Document.getElementById("name").innerHTML - update problems
Inserting Multiple Records into MSaccess Database
How to find local user settings with Javascript
validate a textbox

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics