Random color taglib ver. 1.1

    Custom JSP tags library lets you generate a random color. Uses a quite sophisticated algorithm for getting more smooth data. For example, this code creates a div block with random background:

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

<div style='width:120px; height:150px; background:<r:RandomColor/>'>   </div>

Tags are:


Body tag lets you calculate a random color. Attributes are:

1) id Optional attribute. Describes a name for the page scope variable (type is java.lang.String) with data. Without this parameter tag simply prints data

for downloading:

Library: randomcolortag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: