Forum Moderators: open

Message Too Old, No Replies

Using ALT tag but hiding tool tip

         

Gordon2004

7:09 am on Dec 3, 2003 (gmt 0)

10+ Year Member



Hey all,

Is there any way to use an ALT tag on my images (so my code is XHTML compliant) but not have that anoying tool tip pop up?

Thanks for your help, and I'm loving this site and the friendly people in it.

tedster

8:54 am on Dec 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



alt=""

R1chard

1:41 pm on Dec 3, 2003 (gmt 0)

10+ Year Member



Theoretically, the ALT should not display a tooltip. Alt text is an alternative for when the image is not displayed.

To get a tooltip, use the TITLE attribute.

Displaying ALT as tooltip text is a browser quirk of IE and version 4 browsers. Mozilla and newer browsers handle this properly, but I don't think it can be turned off in IE! So keep with the full alt text (as you should) and just let your visitors get annoyed.

Gordon2004

1:43 pm on Dec 3, 2003 (gmt 0)

10+ Year Member



Stupid IE!

Thanks Richard

Raymond83

4:27 am on Dec 4, 2003 (gmt 0)

10+ Year Member



This should do the trick:

<img src="URL" alt="this is a picture" title="">

Gordon2004

9:57 am on Dec 4, 2003 (gmt 0)

10+ Year Member



Perfect!

Thanks Raymond!