jQuery Lightbox
Mar 11
jQuery jQuery, lightbox No Comments
I have been playing with the javascript library jQuery for a couple days now.. My intent is to learn the ins and out’s of it for a project at work. So far I like what I am seeing.
I need to learn a “best practices” as there are many ways to do things in jQuery and I am very likely going about some of it incorrectly.. But, there is only one way to try things and that’s to jump off the deep end! So far it’s cake.. Something I have wanted for my site for a while now was a lightbox implementation. And while WordPress has quite a few lightbox like plugins, I thought it would be interesting to create my own using jQuery such that ANY link (on any website) with an attribute of rel=”lightbox” would be opened as a lightbox. This is the file I’m actively developing on;
http://rsow.com/files/jquery.lightbox.js
And the image above will be my lightbox test image for the time being. Clicking the image will close the lightbox. More
