Jquery.lightbox-0.5.js - Display large images within the viewport area

Thought I’d share this modification made to Leandro Vieira Pinho’s jQuery Lightbox :

I modified the jquery.lightbox-0.5.js file by Leandro Vieira Pinho so that it will check each image and if the width or height exceeds the screen (viewport area), then the image is resized while preserving the aspect ratio.

To use this file, you just have to copy and paste entire contents of this javascript file in your already existing jquery.lightbox-0.5.js file or you just have to replace the old file with this.

I have given 2 links: First one will let you down load the entire javascript file and the second will display the source code which you can copy and paste into your existing jquery.lightbox-0.5.js.

Download javascript file: Download jquery lightbox

Source code : File #twhbtf88-5047 - JAVASCRIPT - Sourcecode | sourcepod.com

if you have any issues, please send me an email : ksunimal@aol.com