Tooltip taglib ver. 1.3

    Custom JSP taglib for your UI development. This taglib lets you define a popup window opened (hided) through the mouse movement. In other words you can for example output some text and define a help (explanation, details etc.) that will be on when mouse is moved over your text. For example:
 


<%@ taglib uri="taglib.tld" prefix="t" %>

<t:tooltip>
  <t:text><em>Element 1</em></t:text>
  <t:help>It is an explanation for Element 1</t:help>
</t:tooltip>

and you will get this picture (try to move mouse over the text):

Element 1

Tag does not output popup window if text provided in help tag is empty.

Tags are:

tooltip

Body tag defines a text with some explanation (tooltip). Parameters are:

1) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (output tooltip).

text

Body tag describes a JSP (HTML) code for the main text. Parameters are:

1) style Optional parameter. Describes a CSS style for your text.
2) className Optional parameter. Describes a CSS class for your text.

help

Body tag describes a JSP (HTML) code for your popup window. Parameters are:

1) style Optional parameter. Describes a CSS style for your window. Default value is position:absolute;visibility:hidden;background-color:yellow;padding:3px;border-style:solid;border-color:black;border-width:1px;margin-top:5px;
2) className Optional parameter. Describes a CSS class for your window.
3) width Optional parameter. Describes a width for your window. Default value is 100

for downloading:

Library: tooltiptag.jar    Description: taglib.tld

© Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: