Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 35
  1. #1
    Junior Member
    Join Date
    Feb 2006
    Location
    Port Townsend, WA
    Posts
    15
    Member #
    12545
    What is the name of the tag that one uses to get text when someone hovers over an image with their mouse? Can't remember for the life of me, and can't research if I don't know the tag name.
    Thanks,
    Nancy

  2.  

  3. #2
    Senior Member igeek's Avatar
    Join Date
    Oct 2005
    Posts
    202
    Member #
    11644
    it is called an alt tag

  4. #3
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    Quote Originally Posted by igeek
    it is called an alt tag
    alt is NOT a tag/element ... it's an attribute! :chinese:

    and try the title attribute.
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  5. #4
    Senior Member straight_up's Avatar
    Join Date
    Dec 2003
    Location
    Pennsylvania/Arizona
    Posts
    601
    Member #
    4309
    IMPORTANT
    The alt attribute is NOT what to use to get text on hover. It works this way only in Internet Explorer, and this is incorrect behavior. It is supposed to provide a text equivalent of an image or other non-text element.

    The title attribute IS supposed to be used to get a tooltip (text on hover). This works correctly in all modern browsers if present, even IE. You can put it on not only images, but other elements. I use them on most of my <a href=""> tags.
    I am Alan Hogan (@alanhogan on Twitter). I like PHP, UI/UX design, and OS X.

  6. #5
    Junior Member
    Join Date
    Feb 2006
    Location
    Port Townsend, WA
    Posts
    15
    Member #
    12545
    Thanks, Alan. I tried your "title" suggestion and it does work in Firefox when I do a preview but not IE. I just get that little box of options. I swear when I was doing websites so many years ago the tag option worked for the hover text. But anyway, title it is, I just have to figure out how to make it work in IE.
    Thanks for your help.
    Nancy

  7. #6
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Just specify both, but you should never rely on the tooltip to convey any important information.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  8. #7
    Senior Member straight_up's Avatar
    Join Date
    Dec 2003
    Location
    Pennsylvania/Arizona
    Posts
    601
    Member #
    4309
    Quote Originally Posted by nancyb
    Thanks, Alan. I tried your "title" suggestion and it does work in Firefox when I do a preview but not IE. I just get that little box of options. I swear when I was doing websites so many years ago the tag option worked for the hover text. But anyway, title it is, I just have to figure out how to make it work in IE.
    Thanks for your help.
    Nancy
    You just get a little box of options? Can you link/attach your code, and maybe a screenshot?
    I am Alan Hogan (@alanhogan on Twitter). I like PHP, UI/UX design, and OS X.

  9. #8
    Senior Member straight_up's Avatar
    Join Date
    Dec 2003
    Location
    Pennsylvania/Arizona
    Posts
    601
    Member #
    4309
    Seems to work in IE for me, as described: see attachment.
    I am Alan Hogan (@alanhogan on Twitter). I like PHP, UI/UX design, and OS X.

  10. #9
    Junior Member
    Join Date
    Feb 2006
    Location
    Port Townsend, WA
    Posts
    15
    Member #
    12545
    Quote Originally Posted by straight_up
    Seems to work in IE for me, as described: see attachment.
    I just get title when I hover on your attachment-nothing on tag.

  11. #10
    Junior Member
    Join Date
    Feb 2006
    Location
    Port Townsend, WA
    Posts
    15
    Member #
    12545
    Quote Originally Posted by straight_up
    You just get a little box of options? Can you link/attach your code, and maybe a screenshot?
    Later on this, Alan. I have to take off but I will try and solve this on my own and then ask you again if I can't. At least now I can get text when hovering in Firefox. Thanks.
    Nancy


Page 1 of 4 1 2 3 ... LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:50 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com