I was looking around for a tutorial on how to add a light box (cool pop-up window using Javascript) using jQuery and found one but the code didn't work.

However, I later came across Fancybox which seems to cover all bases of what type of content may appear in your lightbox. Their download contains a great demo that is easy to dissect and learn how to integrate it with your site.

The content may be an image, an external web page, HTML, Flash etc.