Lightbox, Thickbox or GreyBox
Wednesday, June 11th, 2008Ok, simply using this as a code toolbox again, I don’t want to misplace some of these links.
I spent the better part of a day trying to get Thickbox to work with some existing [and fairly outdated] style switching code. In an attempt to avoid a typical, blow my top, crap on everyone outbursts, I decided to try something else.
While searching around the little interweb for Thickbox issues, I found a post on a forum about Greybox.
After taking a couple of minutes to drop in the code, it worked like a champ. So . . I’m keeping it.
No knock on Thickbox, just simply didn’t have time to troubleshoot anymore. Greybox seems to provide about the same result [and of course it validates], but instead of linking to a url with a querystring of variables and adding a class of “thickbox”, you simply link to the page with ‘ rel=”gb_page_center[520, 500]“‘ in your anchor tag. This is for linking to html documents . . it’s slightly different to create an image gallery like Lightbox JS has mastered.
Plus, it’s about 10kb less than Thickbox simply because of the absence of the jQuery library.

