jQuery Lightbox
May 5th, 2009I’ve just tried out a lightbox plugin for jQuery, it’s called jQuery Lightbox Plugin (balupton edition) and despite the rather long title it’s very easy to use.
One of the main advantages I can see over other libraries is that you only need to create one link to the main JavaScript file, all the other links are handled by the code. This makes including the script much easier as there’s only one line to add in the document head
<script type="text/Javascript" src="/lightbox/js/jquery.lightbox.min.js"></script>
The only problem I experienced is that using the constructor crashes IE6, so using this code doesn’t work:
$(function(){$.Lightbox.construct({
show_linkback: false
});
});
Fortunately there’s a workaround by appending the options to the script link so it looks like this:
src="/lightbox/js/jquery.lightbox.min.js?show_linkback=false
Online RegEx Tool
I also ran across this online regular expression tester, it’s done in Flash but you can also download it to your computer if you have Abobe Air installed. It makes for a very handy tool on your desktop.