tags:

views:

73

answers:

2

hi all,

i'm looking for a lightweight javascript for displaying images the way lightbox does. it should be small + simple, no jquery/mootools plugin, no animations.

i just should be able to display an image when clicking on its thumbnail.

thanks

+2  A: 

You can use for example Lytebox. This script doesn't have any dependencies on external libraries and integrating it with your page is as easy as using Lightbox

Rafael
A: 

If you're looking for something really light-weight, you might take a look at this script.

To convert all links whose URLs end in .jpg, .png or .gif, add the following lines to the bottom of your page:

<script src="minibox.js" type="text/javascript"></script>
<script type="text/javascript">
minibox.borderSize = 5;
minibox.borderType = 'solid red';
minibox.img.title = 'click to close image window';
minibox();
</script>

There is no documentation, but the code is reasonably clear.

Christoph