Click to See Complete Forum and Search --> : DHTML ToolTip in frames...
Zeena
08-19-2003, 08:46 AM
How could i get the tool tip to stay above the mainFrame when i have a tooltip in a small leftFrame (120px).
(The tool tip seem to go "under the mainFrame)
When you use alt tags the alt texst displays in front...
Originally posted by Zeena
When you use alt tags the alt texst displays in front... That is a misuse of the alt attribute. alt is meant to display text when users don't have images. If you are looking for a tooltip, use the title attribute. Also, alt only displays as a tooltip in IE. Anyway, if you use DHTML to make custom tooltips, you won't be able to go over the frames, as the DHTML content will limited to the document of one page.
Zeena
08-20-2003, 01:58 AM
Yes- I know you are correct about the "alt" use...
But i prefer to not use the "alt"-text when i use dhtml tooltips in a picture. The tooltip will show and the "alt" text will show as well. Seem cind of messy to me...
But not using it makes your code invalid, and also inaccessable to those who are not able to view your images. The alt attribute is not an optional attribute for an <img> tag. It is required. Also, as I stated earlier, alt only works as a tooltip in IE -- it is not suppose to do that. Anyway, you can fix the problem, and keep your page valid and accessable by using something like this:
<img src="someimg.gif" alt="Your alternate text" title="">