在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:defunkt/facebox开源软件地址:https://github.com/defunkt/facebox开源编程语言:JavaScript 100.0%开源软件介绍:FaceboxFacebox is a jQuery-based, Facebook-style lightbox which can display images, divs, or entire remote pages. CompatibilityThis release relies on a lot of advanced CSS techniques (box-shadow, border-radius, RGBA). That being said, it's compatible with many browsers.
UsageInclude jQuery,
Calling facebox() on any anchor tag will do the trick, it's easier to give your Faceboxy links a rel="facebox" and hit them all onDomReady.
Any anchor links with
Using facebox programmatically
The above will open a facebox with "some html" as the content.
The above will show a loading screen before the passed function is called, allowing for a better ajaxy experience. The facebox function can also display an ajax page, an image, or the contents of a div:
EventsWant to close the facebox? Trigger the
Facebox also has a bunch of other hooks:
Simply bind a function to any of these hooks:
CustomizationYou can give the facebox container an extra class (to fine-tune the display of the facebox) with the facebox[.class] rel syntax.
Contact & HelpIf you have questions, feel free to ask on the Google Groups Mailing List. Alternatively if you find a bug, you can open an issue. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论