Jump to content

<DIV> Tooltip


PrateekSaxena

Recommended Posts

Hello,Is there any way in which a <DIV> that could show a tooltip. I mean the yellow one that is default that comes as the ALT of the images on mousover. I don't want something like this - http://dhtmlgoodies.com/index.html?page=tooltip . Could someone help?

Link to comment
Share on other sites

Why don't you want to use those you linked to? I don't like using alt or title attributes because not all browsers will display them as tooltips. If the image loads, Opera doesn't do anything with the alt attribute. I prefer to use Walter Zorn's tooltip library, it works great. You can style everything, have images in the tooltips, etc. They are just divs.http://www.walterzorn.com/tooltip/tooltip_e.htm

Link to comment
Share on other sites

Why don't you want to use those you linked to? I don't like using alt or title attributes because not all browsers will display them as tooltips. If the image loads, Opera doesn't do anything with the alt attribute.]
neither does firefox. but all 3 browsers display a tooltip with title
Link to comment
Share on other sites

neither does firefox. but all 3 browsers display a tooltip with title
As croatiankid says: the "title=" is supposed to be displayed when you mouse over a link.The "alt=" is for replacing images which (for some reason) are not displayed. Some Bowsers *cough* IE *cough* 'high-jacked' the "alt=" to perform what the "title=" was intended for as mouse-over tooltips.The "title=" is also used by Accessibility tools like screen readers, so if that is an issue, use "title=" is my suggestion.
Link to comment
Share on other sites

so title it is..what I making need to work on IE and FF only so it is not a problem

Link to comment
Share on other sites

ok..thanks all i hv decided to use TITLE but if cozez a problem i might wtire my own tooltip js

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...