Name | LightBoxJS Plugin |
---|---|
Publisher | Derik Vercueil |
License | Open Source (GPL v2) |
Version | 0.1 |
Experimental | Yes |
Homepage | |
Download | http://code.google.com/p/struts2lightboxplugin/downloads/list |
Overview
Tag that makes it easier to use the popular LightBoxJS script. This tag will take your original image and generate thumbnails on the fly.
Usage:
Import the tag:
Code Block | ||||
---|---|---|---|---|
| ||||
<%@ taglib prefix="lightbox" uri="/lightbox"%>
|
Use the tag as follows:
Code Block | ||||
---|---|---|---|---|
| ||||
<lightbox:thumbnail imageURL="images/myimage.png" imageCaption="Some image caption"/>
|
For the above example, the thumbnail created will be in "images/thumbnails/myimage.png".
To group multiple images use the following:
Code Block | ||||
---|---|---|---|---|
| ||||
<lightbox:thumbnail imageURL="images/myimage1.png" imageCaption="Some image caption 1" imageGroup="mygroup"/>
<lightbox:thumbnail imageURL="images/myimage2.png" imageCaption="Some image caption 2" imageGroup="mygroup"/>
|
Warning |
---|
The lightbox:head tag must be included in all the pages that will use the tags from this plugin. |