tags:

views:

25

answers:

2

how lightboxes for pics works? they use iframes? how they download pics?

A: 

Usually just by creating an <img> element with JS and DOM.

David Dorward
+1  A: 

This is similar to a modal dialog. A translucent overlay is put over the entire screen. A DIV is placed over top of the overlay that displays the picture and controls. Images are usually supplied as a list. It's all JavaScript and CSS. JavaScript is used to flip the images.

Diodeus