Simple & small, pure javascript lightbox (dialog overlay)? [closed]

青春壹個敷衍的年華 提交于 2019-12-04 09:03:04

问题


Does anyone know of a small, limited functionality lightbox built with pure javascript? This is for an embeddable widget, thus the reason of not using jquery. All I really need is creating an overlay for a specific div or simply by passing some HTML.


回答1:


There's a great list/comparison of lightboxes here. You can quickly scan which require a JS library (jQuery, MooTools, etc.) and which don't, and you can also see what features each supports. There's a sizable chunk of them that don't use any JS library, so you should be able to easily find one to suit your needs.

Here's a few to get you started:

  • EnlargeIt!
  • Floatbox
  • iBox



回答2:


I am currently developing a light responsive Lightbox just for images, without the need for jQuery etc... and with IE8+ Support.

You can download it here

Please report any bugs or issues. Thanks!




回答3:


I was looking for a more of a light weight modal dialog, and I found Zebra Dialog which uses Jquery.

http://stefangabos.ro/jquery/zebra-dialog/



来源:https://stackoverflow.com/questions/3585887/simple-small-pure-javascript-lightbox-dialog-overlay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!