jQuery的弹出窗口插件 FancyBox

FancyBox是一款基于jquery开发的类Lightbox插件。支持对放大的图片添加阴影效果,对于一组相关的图片添加导航操作按纽,该lightbox除了能够展示图片之外,还可以展示iframed内容, 通过css自定义外观。

相对与Lightbox而言,阴影效果更好。但是比Lightbox绚丽。

使用很是简单,可以参照Lightbox,修改添加代码。

示例代码:

$(document).ready(function() { /* This is basic - uses default settings */ $("a#single_image").fancybox(); /* Using custom settings */ $("a#inline").fancybox({ 'hideOnContentClick': true }); $("a.group").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': false }); });

FancyBox

项目主页:http://fancybox.net/
下载地址:http://code.google.com/p/fancybox/downloads/detail?name=jquery.fancybox-1.2.1.zip

整理|来自:

本文链接: http://airyland.com/blog/jquery%e7%9a%84%e5%bc%b9%e5%87%ba%e7%aa%97%e5%8f%a3%e6%8f%92%e4%bb%b6-fancybox/

Thanks for the writer's works.感谢原作者的文章。

No Responses to “jQuery的弹出窗口插件 FancyBox”

Leave a Reply

Name:
Email:
Website:
Comment:
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>