开发者

Any good lightbox for a modal dialog?

There are thousands of lightbox components and the likes.

I've looked at about 10 of them, but coul开发者_JAVA百科dn't find what I need.

Just wondering if anyone know a lightbox like component that:

  • can popup an inline div (that is initially hidden)
  • can be modal (eg. you must select a radio button or you can't close the box)
  • can be called dynamically, eg. so that I can call Popup('myDiv'); on page load without the user clicking anything
  • has sufficient documentation/examples to allow me do the above easily

Thanks in advance


BlockUI is a very nice jQuery plugin for making modal popups.

Popup an inline hidden div (I do this all the time with it):

$.blockUI({ message: $('#divID') });

Can be modal: it won't close the popup until you call $.unblockUI()

Dynamic: Just call $.blockUI() where ever you wish, including page load

Documentation: LOTS of examples on their site


I recommend Fancybox (http://fancybox.net/)


I recommend jqModal, which meets all of those requirements.


I think Facebox will give you everything except preventing the user from "closing" it.

Otherwise there's always jQuery UI's Dialog widget, which does have that feature.


Take a look at the jQuery Tools, specifically Overlay.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜