Home & blog  /  2010  /  May  /  view post  /

Lightbox and lightbox dialog

posted: 25 May '10 18:03 tags: Javascript, lightbox, dialog, jQuery

Just posted this. It's a standard lightbox, which runs on a jQuery selector, but more interestingly it's also a lightbox-assisted simulator for in-built browser dialog methods. You have full control over how your dialogs look and act. Here's a demo for a confirm():

1lbdialog({

2     content: "Go to Google?",

3     OKButton: {

4         text: "Yeah, OK",

5         callback: function() {

6             location.href = "http://www.google.co.uk"

7         }

8     },

9     cancelButton: {

10         text: "No, not now"

11     }

12});

Head over here to download, get usage info or view a demo.

post new comment

Comments (0)