Is there a VERY light-weight lightbox available? [closed]

偶尔善良 提交于 2020-01-12 03:13:49

问题


I'm looking for an extremely light-weight lightbox for jQuery. i'm trying to create my own but i suck and my fist is about to go through the screen.... i'm talking like 5kb or less.. i know it can be done, and if i knew what i was doing i'd do it... but i'm just done for the day. So, does anyone know of one? something just for images, and nothing else, no fancy crap, no extra weight, one that simply centers the lightbox in the center of the screen with whatever picture was loaded by the link.


回答1:


There are many options. Check out Rounding Up the Top 10 jQuery Lightbox Scripts.




回答2:


9KB light enough?

I like Colorbox




回答3:


Try this one. It's called Lightcase. This Lightbox Plugin is very easy to style as you want.




回答4:


If you dont need any Ajax support then the lightest Lightbox out there is: Modal Lightbox http://dev.iamntz.com/52/jquery-modal-lightbox-alternative




回答5:


http://www.shadowbox-js.com/

It lets you pick the items you want and delivers a js file that just does that...

Still about 22k for images...




回答6:


This light box is within the size of 2kb and its working superbly. have a look @ it




回答7:


Slimbox 2 is my favourite lightweight lightbox script - it's only 4kb and doesn't even need code to initiate it, you simply embed the script/CSS and add rel="lightbox" to your <A> tags.

http://www.digitalia.be/software/slimbox2



来源:https://stackoverflow.com/questions/2293520/is-there-a-very-light-weight-lightbox-available

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