Link button taglib ver. 1.1

    Custom JSP taglib. Body tag LinkButton lets you display links as CSS buttons. For example:
 


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

<l:LinkButton font="bold">Refresh</l:LinkButton>

and you will get some like this:

Refresh
 

Tags are:

LinkButton

Body tag displays link as CSS button. Body describes a text for your link. Attributes are:

1) href Optional parameter. Describes an URL. By default tag will use the current URL (request URI).
2) target Optional parameter. Describes a target frame.
3) title Optional parameter. Describes a title (tooltip).
4) rel Optional parameter. Describes a rel attribute.
5) unique Optional parameter. Possible values are true or false. If this value is true tag adds unique parameter to link that makes it non-cached. Default value is false (do not add).
6) onClick Optional parameter. Describes a JavaScript code for 'onclick' event.
7) width Optional parameter. Describes a width for the button. Default value is 125px.
8) background Optional parameter. Describes a background for the button. Default value is #3366FF.
9) color Optional parameter. Describes a color for text. Default value is #FFFFFF.
10) font Optional parameter. Describes CSS settings for the font (all except the font size). E.g.: font="italic bold". Default value is empty.
11) fontSize Optional parameter. Describes a size for the font. Default value is 18px.
 

for downloading:

 Library: linkbuttontag.jar     Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: