Tuesday, February 19th, 2008
Lightview 2: Not just images, now on Prototype.Latest
<p>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:
-
-
Lightview.show({
-
href: '/ajax/',
-
rel: 'ajax',
-
title: 'Login',
-
caption: 'Enter your username and password to login',
-
options: {
-
autosize: true,
-
topclose: true,
-
ajaxOptions: {
-
method: 'get',
-
onComplete: function() { $('name').focus(); }
-
}
-
}
-
});
-
-
// If you have firebug installed you can run this from your console, have fun.
-
Lightview.show({ href: 'http://www.google.com', rel: 'iframe', options: { width: 800, height: 500 }});
-
Related Content:












Awesome work!
The source code have been released unpacked or offer 2 versions packed and regular :|
Why is ‘Move your mouse over the image to navigate.’ still being used? Why not show the navigation directly?
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.
@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.