Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ diff jquery.lightbox-0.5.js~ jquery.lightbox-0.5.js
- 188,192c188,198
- < $('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);
- < // Perfomance an effect in the image container resizing it
- < _resize_container_image_box(objImagePreloader.width,objImagePreloader.height);
- < // clear onLoad, IE behaves irratically with animated gifs otherwise
- < objImagePreloader.onload=function(){};
- ---
- > $('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);
- > // Perfomance an effect in the image container resizing it
- > width = objImagePreloader.width;
- > height = objImagePreloader.height;
- > width = (width > 1000) ? 1000 : width;
- > height = (width == 1000) ? (1000/objImagePreloader.width)*height : height;
- > $('#lightbox-image').attr("height", height);
- > $('#lightbox-image').attr("width", width);
- > _resize_container_image_box(width, height);
- > // clear onLoad, IE behaves irratically with animated gifs otherwise
- > objImagePreloader.onload=function(){};
Add Comment
Please, Sign In to add comment