in reply to Re: Monk images at the top of the page (it's an attribute, not a tag)
in thread Monk images at the top of the page
IE handles the ALT and TITLE attributes more sensibly than you might think.
It displays the ALT text (if available) when you hover your mouse over it only if there isn't a TITLE attribute defined (even an empty one).
Try this code:-
<HTML> <HEAD> <TITLE>Image Attribute Test</TITLE> </HEAD> <BODY> <P> <IMG WIDTH="50" HEIGHT="50" SRC="img.gif" ALT="Alt" TITLE="Title"><BR> <IMG WIDTH="50" HEIGHT="50" SRC="img.gif" ALT="" TITLE="Title"><BR> <IMG WIDTH="50" HEIGHT="50" SRC="img.gif" ALT="Alt" TITLE=""><BR> <IMG WIDTH="50" HEIGHT="50" SRC="img.gif" TITLE="Title"><BR> <IMG WIDTH="50" HEIGHT="50" SRC="img.gif" ALT="Alt"><BR> <IMG WIDTH="50" HEIGHT="50" SRC="img.gif"> </P> </BODY> </HTML>
It helps if img.gif doesn't exist as it makes it more obvious what happens with the ALT text.
__________
"Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to one instruction which doesn't work." -- (Author Unknown)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Monk images at the top of the page (it's an attribute, not a tag)
by castaway (Parson) on Jan 24, 2003 at 10:06 UTC |