Tuesday, February 19th, 2008

Lightview 2: Not just images, now on Prototype.Latest

Category: Library, Prototype

Nick Stakenburg has released Lightview 2, an update of his lightbox-esque library:

With the first released of Lightview I aimed to make overlaying images as elegant as possible, rethinking what we know as Lightbox. With Lightview 2.0 I’m going a step further, doing the same for
video (Quicktime), swf, Ajax, iframe and inline content.

You can do most of what you need via simple CSS classes, and if you need more control you can drop to the JavaScript API:


  1. Lightview.show({
  2.   href: '/ajax/',
  3.   rel: 'ajax',
  4.   title: 'Login',
  5.   caption: 'Enter your username and password to login',
  6.   options: {
  7.     autosize: true,
  8.     topclose: true,
  9.     ajaxOptions: {
  10.       method: 'get',
  11.       onComplete: function() { $('name').focus(); }
  12.     }
  13.   }
  14. });
  16. // If you have firebug installed you can run this from your console, have fun.
  17. Lightview.show({ href: 'http://www.google.com', rel: 'iframe', options: { width: 800, height: 500 }});

Lightview 2

Posted by Dion Almaer at 6:15 am

4.3 rating from 55 votes


Comments feed TrackBack URI

Awesome work!

Comment by jdalton — February 19, 2008

The source code have been released unpacked or offer 2 versions packed and regular :|

Comment by jdalton — February 19, 2008

Why is ‘Move your mouse over the image to navigate.’ still being used? Why not show the navigation directly?

Comment by FrenkieB — February 20, 2008

I agree with jdalton, with so many competitive Lightboxes out there, only having a packed release ruins Lightview. I almost always customize the JavaScript I use, it is one of the main advantages of the language. And unpacking is so slow!! Thickbox or Shadowbox for me.

Comment by Charles — February 21, 2008

@jdalton, Charles: What’s important for me is to have a great piece of code out there, making Lightview all it can be. For this reason I’m not really interested in people wanting to customize my work. From my experience those people hardly give anything back.

The reason for obfuscation in combination with the License is that I have better experience getting feedback this way. Allowing me to improve Lightview faster. On previous projects I’ve open sourced, people hardly gave anything back. They would just alter some code and never tell me about it.

A good example in this case is the way Lightbox got cloned so many times after it released. Many have only slightly altered it and gave it a new name, without giving back to improve the original Lightbox.

Perhaps I will open source Lightview one day, but not after I’ve made it rock solid and all it can be.

Comment by Nick — February 21, 2008

Leave a comment

You must be logged in to post a comment.