Custom JSP taglib. Lets you work with favicons in your web applications.
Tag addFavicon lets you add favicon from the remote sites to your JSP pages.
For example:
<%@ taglib uri="taglib.tld" prefix="i" %> <br/><i:addFavicon>http://www.google.com</i:addFavicon> http://www.google.com <br/><i:addFavicon>http://www.servletsuite.com/jsp.htm</i:addFavicon> http://www.servletsuite.com/jsp.htm and you will get some like this:
You can provide an alternate image (in case of favicon.ico does not exist of the requested site). Also you can provide your own CSS settings for the image. By default tag will use the following: width=16 height=16 border=0 Tag insertFavicon lets you embed JavaScript code for adding favicon from the remote sites. So in this case favicon will be actually added on the client side. Tag blinkFavicon lets you embed JavaScript code for simulating blinking favicon on your own site.
You can use a blinking favicon as a notification for various events (messages, buddy login, signout). For example:
<%@ taglib uri="taglib.tld" prefix="i" %> <br/><i:blinkFavicon/> and you will see favicon blinking. Tags are: addFavicon Body tag lets you add favicon file from the remote host. Tag's body describes an URL for the host. Attributes are: 1) className Optional parameter. Defines a CSS class for the image
insertFavicon Body tag lets you create JavaScript code for adding favicon file from the remote host. Tag's body describes an URL for the host. Attributes are: 1) className Optional parameter. Defines a CSS class for the image
blinkFavicon Body tag lets you create JavaScript code for blinking favicon on your host. Attributes are: 1) delay Optional parameter. Defines a delay for blinking in milliseconds. Default
value is 500.
for downloading: Library: favicontag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|