The simplest possible thing that could work

Ever need a lightbox in a big hurry that doesn’t rely on much of anything besides Prototype? Here’s a very simple version, probably won’t look like much in IE < 8, but plays nicely on the standard browsers.

All it does is resize the image using CSS to fill the screen. I started my layout with links to full-size images that were set to target = _blank (hey, built-in support for graceful degradation!) and just hooked their click event to open the effect.

Walter


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Have you got this online somewhere Walter?

D


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here. A little bit hacked up from being extracted out of Rails (I just did view source and a bit of editing).

http://scripty.walterdavisstudio.com/light/

The large images are really large, I know.

Walter

On Oct 4, 2011, at 6:33 PM, DeltaDave wrote:

Have you got this online somewhere Walter?

D


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options