Set max width 800px on Lightbox plugin?

I modified the jquery. Lightbox-0.5. Js file by Leandro Vieira Pinho.

What this modified javascript file does is, 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: turboupload.com/081zwttawcb6 Source code : sourcepod.com/twhbtf88-5047.

I modified the jquery. Lightbox-0.5. Js file by Leandro Vieira Pinho.

What this modified javascript file does is, 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: turboupload.com/081zwttawcb6 Source code : sourcepod.com/twhbtf88-5047.

(stackoverflow. Com/questions/6414314) – Ken White Jun 23 at 1:58.

I just looked at the documentation for this and it doesn't seem to support this feature. I've modified a similar lightbox plugin (slimbox) to do what you are asking for. Goto trips.elisien.co.uk and click on the "slimbox" examples link.

Regards Neil.

Neil thank you for your answer but trips.elisien.co. Uk is down for me I can't access Found it at digitalia. Be/software/slimbox2 I will try and let you know thank you – Teodor Feb 9 at 21:10 I had to modify the digitalia.Be version.

Sorry, I made a mistake with the page containing the changes. It should have been: trips.elusien.co.Uk (not el I sien). – Neil Feb 9 at 23:01 there's any chance to make width let say 800px and height auto?

I couldn't make it .. and I have in my db different size of photos so I need the lightbox to remain width 800 and height auto in order to look fine – Teodor Feb 10 at 10:54 Teodor, download the version of slimbox that is on my website (trips.elusien.co.Uk/slimbox2/example9. Html). You will see that you can specify either slideHeight or slideWidth, or both of them.

If you don't specify one of them it will remain "auto". Try it and let me know if it does what you want. – Neil Feb 11 at 12:03.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions