问题
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.
回答1:
There are many options. Check out Rounding Up the Top 10 jQuery Lightbox Scripts.
回答2:
9KB light enough?
I like Colorbox
回答3:
Try this one. It's called Lightcase. This Lightbox Plugin is very easy to style as you want.
回答4:
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
回答5:
http://www.shadowbox-js.com/
It lets you pick the items you want and delivers a js file that just does that...
Still about 22k for images...
回答6:
This light box is within the size of 2kb and its working superbly. have a look @ it
回答7:
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.
http://www.digitalia.be/software/slimbox2
来源:https://stackoverflow.com/questions/2293520/is-there-a-very-light-weight-lightbox-available