tags:

views:

53

answers:

5

I have to open a page in a lightbox or thicbox style with a overlay image . I found thickbox on net but that is too big arnf 55 kb. I need a simpler and tiny js thing to do this. Can anyone plz suggest some??

A: 

Take a look at Colorbox: http://colorpowered.com/colorbox/

David Radcliffe
Agreed, Colorbox is awesome.
webfac
This assumes you're already using jQuery. While Colorbox itself is just 19kB, with jQuery it's 113kB.
You
Actually even with jQuery it's only 33kB. 9kB + 24kB
David Radcliffe
A: 

I'm using Facebox and Fancybox both smaller than thickbox.

fabrik
Both these require jQuery, adding 94kB to the size unless you're already using it for other purposes.
You
OP didn't specified he using jQuery or not. What more he using Thickbox with jQuery.
fabrik
It's still an assumption, and thus it's worth mentioning that you've made this assumption.
You
Don't forget to add +1 because both smaller than 55kb ;)
fabrik
+1  A: 

Smallest thing that I use: SubModal

http://code.google.com/p/submodal/

shamittomar
+1 for being the only answer with a total size actually less than 55kB.
You
+2  A: 

There's an excellent Lightbox matrix in which you can sort (and filter) by feature, size, framework and more. Greybox seems to be the lightest one that meets your requirements.

You
The matrix link is awesome but it seems a little out of date. The library sizes have changed a bit in the last 2 years.
David Radcliffe
A: 

Shadowbox has the advantage that you can easily (through a webinterface) create a custom version of it containing only what you need. That way it is very very lightweight.

If you download it for showing ONLY other web-pages without any connectors for other frameworks, the script itself is only 21k.

Joeri Hendrickx