Lightbox Plus

What's this?

  1. Samples
  2. Feature
  3. How to use
  4. Customize
  5. FAQ
  6. Download

Lightbox JS is very cool and useful script to display an image on the page.

However only the part of the image is displayed when the image size is larger than the window size. So I've created original script (Idea is based on Lightbox JS, but I've created the script from scratch).


  • sample 1
  • sample 2
  • sample 3
  • sample 4
  • sample 5
  • sample 6


  • The image is expandable when the image size is larger than the current window size.
  • The image is resized automatically to suit to the current window size.
  • The echoic word image can be applied.
  • The zoom ratio can be changed by mouse wheel.
  • The zoomed image can be dragged.

How to use

This script can be used in much the same way as Lightbox JS.

  1. Include spica.js and lightbox_plus.js in header.
    <script type="text/javascript" src="lightbox_plus.js"></script>
  2. Add rel="lightbox" attribute to any link tag to activate the lightbox.

"spica.js" was no longer needed since ver 20090707 because "lightbox_plus.js" contains basic functionality of "spica.js".


At the end of "lightbox_plus.js",

addEvent(window,"load",function() {
  var lightbox = new LightBox({

images, which are used in Lightbox Plus, are indicated.

So you can change these when the images are changed or put on the different directory.

The default settings are set like above on the premise that html files, "lightbox_plus.js", and all images are put on the same directory. So I recommend to change it as absolute path, like "".

effectimg indicates url of an echoic word image, effectpos indicates position of the image, effectclass indicates class attribute to apply an echoic word image.

When effectclass has no value but effectimg has a valid value, all lightbox images are displayed with an echoic word image. When effectclass is valid, an echoic word image is displayed for the same class.

For example, when the setting set as "effectclass:'effectable'", the following anchor could be displayed with the echoic word image.

<a href="[...image...]" rel="lightbox" class="effectable">****</a>

Set "resizable" as false if you want to turn off mouse wheel feature.


Animated image for loading is not displayed.
Path settings at the end of lightbox_plus.js are probably incorrect. So please check these using example from customize.
Animated image for loading is display at the right edge of the window.
Please update your lightbox_plus.js.
Animated image for loading is still displayed after finishing loading.
Please update your lightbox_plus.js.


File size3.6MB (zip format)

Download Sample


Don't hesitate to contact me if you have any question about it.

Thank you for your visiting. I hate to inconvenience you but my reply may delay.


24 Aug 2014
fixed bugs ( next image button position issue, image loading issue )
23 Aug 2010
fixed a bug ( some captions could be shown on out side of screen )
21 Aug 2010
fixed a bug ( missing action buttons in some occasions )
29 Jul 2009
fixed a bug ( lightbox may not be closed properly )
09 Jul 2009
fixed a bug (loading image is not shown properly)
07 Jul 2009
implemented animation effects
18 Mar 2009
fixed a bug (next/prev links are not shown in some occasions)
04 Apr 2007
uploaded sample archive
27 Oct 2006
fixed a bug (not work on Netscape 7)
26 Oct 2006
fixed some bugs
11 Oct 2006
implemented image sets feature
20 Sep 2006
implemented overall view
18 Sep 2006
implemented Mouse wheel & image drag'n drop features
28 Jan 2006
implemented functionality of echoic word.
20 Jan 2006
implemented functionality of caption and close button.
15 Jan 2006
first release.
Copyright © 2006 SerendipityNZ Ltd. All rights reserved.