views:

553

answers:

4

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.

my screen will thank you...

+1  A: 

9KB light enough?

I like Colorbox

ghoppe
ehh, it's around the too big mark, i know it can be done for under 5k.i checked out colorbox before and it was my next choice.
ExodusNicholas
+4  A: 

There are many options. Check out Rounding Up the Top 10 jQuery Lightbox Scripts.

Jonathan Sampson
excellent, i found http://jquery.com/demo/grey/ by john Resig, just around 2kb in size and I've significantly reduced that already.
ExodusNicholas
@ExodusNicholas: Impressive!
Jonathan Sampson
+1  A: 

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...

Hogan
ahhh 22k for a script to show an image, that's just too much for me. I've got one working for 2k-3k right now. not as fancy, but does the job and does it well.
ExodusNicholas
A: 

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

Andrew