Menu taglib ver. 1.2

    Custom JSP taglib for UI development. This taglib implements a simple CSS menu. For example:
 


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

<m:Menu>
  <m:item value="javascript:alert('Option 1')">Item 1</m:item>
  <m:item value="javascript:alert('Option 2')">Item 2</m:item>
  <m:item value="javascript:alert('Option 3')">Item 3</m:item>
  <m:item value="/index.html">Item 4</m:item>
</m:Menu>

and you will get the following picture:

Item 1 Item 2 Item 3 Item 4

Menu here is a collection of links or JavaScript calls.

Tags are:

Menu

Body tag provides a CSS menu. Parameters are:
1) orientation Optional parameter. Describes an orientation. Possible values are horizontal or vertical. Default value is horizontal.
2) width Optional parameter. Describes a width for your options. Default value is 75px.
3) height Optional parameter. Describes a height for your options. Default value is 25px.
4) background Optional parameter. Describes a background color for your options. Default value is #ddd.
5) color Optional parameter. Describes a color for your options. Default value is black.
5) itemBackground Optional parameter. Describes a background color for the current option. Default value is black.
6) color Optional parameter. Describes a color for the current option. Default value is white.
7) activeBackground Optional parameter. Describes a background color for the selected option. Default value is black.
8) activeColor Optional parameter. Describes a color for the selected option. Default value is white.

item

Body tag describes an item (option) in your menu. Parameters are:

1) value Optional parameter. Describes an action for this option: URL or JavaScript calls. You may omit this parameter for disabled options.
2) style Optional parameter. Describes your own CSS style for this option.

for downloading:

Library: menutag.jar    Description: taglib.tld

© Coldbeans      Comments?

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