Javascript – modal image popups

imagejavascriptmodal-dialog

I have seen a few sites that have a thumbnail and when you click it, it enlarges the image in a modal like popup. Can anyone tell me how this is done?

Thanks!

Best Solution

It is done with lightbox. There are several other scripts that do this, for example a jquery plugin.