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:

JAVASCRIPT:

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 }});
 

Lightview 2

Source: Ajaxian
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/237499202/lightview-2-not-just-images-now-on-prototypelatest

Comments are closed.



Site Navigation