Results 1 to 6 of 6

Thread: Tooltip

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Tooltip

    In Internet Explorer, moving my mouse over an image (that has the ALT="something" specified), brings up a tooltip with the word "something" there.

    Question 1: From what version of IE onwards was this feature present? Is it present in Opera?

    Question 2: A toolbar I've created consists of about seven to eight images of size 16*16. This means I haven't written any words there. For example, an image of a question mark, and it's got the tooltip "help." Now I just checked it in Mozilla, and mozilla has no tooltip!! I'm assuming Netscape doesn't either? Any suggestions as to an alternative? How can I inform the (stupid) user that this question mark image is for "help"?

    THanks.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    ALT isn't meant for tooltips (that's IE being naughty again ) - it's meant to be shown when the image isn't loaded, or the users doesn't have an image enabled browsers. You should instead use the title attribute which can be used on just about any element:

    Code:
    <img src="help.png" alt="Help" title="Takes you to the help page" />
    IE also works with title so you should switch to that, although I think it doesn't use the title of a link if an image is within that, it instead uses the ALT so you have to add the title to the image as well.

  3. #3

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Thanks, that was good!

    But you lost me here:

    IE also works with title so you should switch to that, although I think it doesn't use the title of a link if an image is within that, it instead uses the ALT so you have to add the title to the image as well.
    From what I understood, If I have an image link, in IE, I should use:

    Code:
    <a href="http://rickbull.co.uk/" alt="dummy" title="dummy">
    Correct?

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Well sort of, but technically you would usually want to put the title in the link, because say you had this:

    Code:
    <a href="#"><img ... /> And some text by the side</a>
    If you put the title in the img tag it would only show up when the cursor is over the image, and not the text by the side. So really you should be able to put a title for the link and not have to bother with the image. But because IE does the tool tip for the ALT text you have to add it for both the link and the image. Get me? But if it's just an image and no text then it doesn't matter

  5. #5

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    It's frightening... I actually understood that

  6. #6
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Well done, you've become a man now my son.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width