Opening any webpage in a dialog window (tested with SharePoint 2010).

Note: I had to add the script using SharePoint Designer 2010 as the web editor kept removing the javascript whenever I clicked on save.

Opening an image with a Lightbox effect.

Note: I had to modify John’s script a little to get this to work for me.

<script type=”text/javascript”>
$(document).ready(function () {
url: $(this).attr(“src”),
title: $(this).attr(“alt”)