# The simplest possible thing that could work

**URL:** <https://discourse.softpress.com/t/the-simplest-possible-thing-that-could-work/12076>\
**Category:** Dynamo\
**Created:** [October 4, 2011, 10:17pm UTC](https://discourse.softpress.com/t/the-simplest-possible-thing-that-could-work/12076 "2011-10-04T22:17:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [October 4, 2011, 10:17pm UTC](https://discourse.softpress.com/t/the-simplest-possible-thing-that-could-work/12076/1 "2011-10-04T22:17:07Z")

</div>

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.

> <https://gist.github.com/walterdavis/1262951>

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](http://freewaytalk.net/person/options)

---

<div class="post-metadata">

**Author:** ![David\_McCallum](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/d/ec9cab/32.png) [@David\_McCallum](https://discourse.softpress.com/u/David_McCallum)\
**Post date:** [October 4, 2011, 10:33pm UTC](https://discourse.softpress.com/t/the-simplest-possible-thing-that-could-work/12076/2 "2011-10-04T22:33:17Z")

</div>

Have you got this online somewhere Walter?

D

* * *

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

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [October 5, 2011, 12:05am UTC](https://discourse.softpress.com/t/the-simplest-possible-thing-that-could-work/12076/3 "2011-10-05T00:05:41Z")

</div>

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/](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](http://freewaytalk.net/person/options)

* * *

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