Hi people,
Just a quick wish. Would it be possible to add a <TITLE> tag to the monk images? (Should be displayed by the browser when the mouse hovers over the pic.) - Yes, I know some browsers display the ALT tag there, but thats not what its for :)

Thanks,
C.

Replies are listed 'Best First'.
Re: Monk images at the top of the page (it's an attribute, not a tag)
by grinder (Bishop) on Jan 23, 2003 at 18:27 UTC
    I second the motion. I've run into this elsewhere. As it turns out, according to the W3C standard, the alt attribute (not tag) is for alternate viewing methods (such as for PDAs or for voice-synthesis output for blind people). As such, it's not supposed to be displayed when you hover the mouse over it. Microsoft, in their infinite wisdom, of course chooses to ignore the standard, and displays it anyway.

    Mozilla gets it right, and doesn't display the text. And it does display the contents of title attributes. They weren't joking when they said that Mozilla would be a standards-compliant browser. I have therefore submitted a patch to add title attribute to img elements, as well as the alt attribute.

    The only debate now is whether people think it's a good idea for pop-up text to appear when you hover the mouse over an image, or not. I'm all for it, but I don't mind if it's decided that it's not worth it.

    So, what do people think about this?


    print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'

      I'm all for it. After all, if one doesn't like it, one can always make sure their browser doesn't display the title tags on mouseover. Well, one can if one's using Mozilla ; )

      Jon

      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)

        Its debateable if 'sensible' and 'according to standard' are interchangeable, in my opinion, if it was good, it would be like that in the standard anyway. ;)
        As far as I understand it, the ALT text should be shown in the page where the image would be, if it was there/shown. And the TITLE tag is for the mouse.

        Anyfish, thanks for the positive feedback, *waits to see what happens*

        C.

Re: Monk images at the top of the page
by chromatic (Archbishop) on Jan 23, 2003 at 18:22 UTC

    Makes sense to me. I've submitted a patch to this effect.

Re: Monk images at the top of the page
by castaway (Parson) on Jan 23, 2003 at 13:53 UTC
    Just to clarify, I'd like it to show the name of the monk in the TITLE tag, like it does in ALT.
    I'd like to see who they are without having to read the page source :)

    C.