I'm looking for an extremely light-weight lightbox for jQuery. i'm trying to create my own but i suck and my fist is about to go through the screen.... i'm talking like 5kb or less.. i know it can be done, and if i knew what i was doing i'd do it... but i'm just done for the day. So, does anyone know of one? something just for images, and nothing else, no fancy crap, no extra weight, one that simply centers the lightbox in the center of the screen with whatever picture was loaded by the link.
There are many options. Check out Rounding Up the Top 10 jQuery Lightbox Scripts.
9KB light enough?
I like Colorbox
Try this one. It's called Lightcase. This Lightbox Plugin is very easy to style as you want.
If you dont need any Ajax support then the lightest Lightbox out there is: Modal Lightbox http://dev.iamntz.com/52/jquery-modal-lightbox-alternative
It lets you pick the items you want and delivers a js file that just does that...
Still about 22k for images...
This light box is within the size of 2kb and its working superbly. have a look @ it
Slimbox 2 is my favourite lightweight lightbox script - it's only 4kb and doesn't even need code to initiate it, you simply embed the script/CSS and add rel="lightbox"
to your <A>
tags.
来源:https://stackoverflow.com/questions/2293520/is-there-a-very-light-weight-lightbox-available