`
androider
  • 浏览: 744325 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

FancyBox - Cool Jquery Dialog

阅读更多

 

Key Default value Description
padding 10 Space between FancyBox wrapper and content
margin 20 Space between viewport and FancyBox wrapper
opacity false When true, transparency of content is changed for elastic transitions
modal false When true, 'overlayShow' is set to 'true' and 'hideOnOverlayClick', 'hideOnContentClick', 'enableEscapeButton', 'showCloseButton' are set to 'false'
cyclic false When true, galleries will be cyclic, allowing you to keep pressing next/back.
scrolling 'auto' Set the overflow CSS property to create or hide scrollbars. Can be set to 'auto', 'yes', or 'no'
width 560 Width for content types 'iframe' and 'swf'. Also set for inline content if 'autoDimensions' is set to 'false'
height 340 Height for content types 'iframe' and 'swf'. Also set for inline content if 'autoDimensions' is set to 'false'
autoScale true If true, FancyBox is scaled to fit in viewport
autoDimensions true For inline and ajax views, resizes the view to the element recieves. Make sure it has dimensions otherwise this will give unexpected results
centerOnScroll false When true, FancyBox is centered while scrolling page
ajax { } Ajax options (error, success will be overwritten)
swf {wmode: 'transparent'} Flashvars to put on the swf object
hideOnOverlayClick true Toggle if clicking the overlay should close FancyBox
hideOnContentClick false Toggle if clicking the content should close FancyBox
overlayShow true Toggle overlay
overlayOpacity 0.3 Opacity of the overlay (from 0 to 1; default - 0.3)
overlayColor '#666' Color of the overlay
titleShow true Toggle title
titlePosition 'outside' The position of title. Can be set to 'outside', 'inside' or 'over'
titleFormat null Callback to customize title area. You can set any html - custom image counter or even custom navigation
transitionIn, transitionOut 'fade' The transition type. Can be set to 'elastic', 'fade' or 'none'
speedIn, speedOut 300 Speed of the fade and elastic transitions, in milliseconds
changeSpeed 300 Speed of resizing when changing gallery items, in milliseconds
changeFade 'fast' Speed of the content fading while changing gallery items
easingIn, easingOut 'swing' Easing used for elastic animations
showCloseButton true Toggle close button
showNavArrows true Toggle navigation arrows
enableEscapeButton true Toggle if pressing Esc button closes FancyBox
onStart null Will be called right before attempting to load the content
onCancel null Will be called after loading is canceled
onComplete null Will be called once the content is displayed
onCleanup null Will be called just before closing
onClosed null Will be called once FancyBox is closed

完整的API在如下链接:

http://fancybox.net/api

分享到:
评论
2 楼 forestkqq 2010-05-12  
var iframeUrl = 'test.asp?yyy=222';
$.fancybox(
{
'width' : 700, 'height' : 450, 'transitionIn': 'fade',  'transitionOut': 'fade',
'autoScale' : false,
ajax: {
       type: "POST",
       data: { xxx:'1234' }
        },

'type' : 'iframe',
'href' : iframeUrl
});

我希望设置 ajax 传递 xxx='1234'到 test.asp 中,但是不行,是为什么呢
1 楼 forestkqq 2010-05-12  
请教一个问题:
我使用 FancyBox的 iframe 功能,如何向 iframe 传递 post 参数呢 ?

相关推荐

    fancyapps-fancyBox-v2.1.5-0

    fancyapps-fancyBox-v2.1.5-0 是一个基于 jQuery 的流行弹出框插件,专门设计用于在移动端和PC端提供高质量的图片浏览体验。这个插件以其优雅的设计和丰富的功能集,成为了网页开发中常用的一款工具。 fancyBox 的...

    jquery.fancybox-1.3.4

    "jQuery.fancybox-1.3.4"是一个流行的JavaScript库,专门用于实现轻量级的弹出窗口和图片画廊效果。这个版本是1.3.4,它在当时是jQuery Fancybox的一个稳定版本,提供了丰富的功能和自定义选项,以帮助开发者创建...

    基于jQuery的图片点击弹窗预览大图插件,jquery.fancybox-1.3.4

    <link rel="stylesheet" href="jquery.fancybox-1.3.4.css"> <script src="https://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="jquery.fancybox-1.3.4.pack.js"> <a class="fancybox" href...

    fancybox-2.1.7.zip

    jquery 弹出层插件,图片点击放大插件推荐FancyBox,版本为2.1.7 效果查看http://fancyapps.com/fancybox/ 或者https://www.baiyongj.com/event/fancybox-2.1.7/index.html

    jquery.fancybox-1.2.1

    `jQuery.Fancybox-1.2.1`是一个经典的图片灯箱插件,广泛应用于网页中的图片展示,尤其在那些需要创建优雅、响应式且交互性强的图像浏览体验时。这个插件基于流行的JavaScript库jQuery,它允许开发者轻松地将任何...

    jquery.fancybox-1.2.6

    <link rel="stylesheet" href="path/to/jquery.fancybox-1.2.6.css"> <script src="path/to/jquery.js"> <script src="path/to/jquery.fancybox-1.2.6.pack.js"> ``` 接着,为需要使用Fancybox的图片元素添加特定的...

    fancybox-master.zip

    Fancybox是一款广受欢迎的JavaScript库,专为网页中的媒体展示设计。它基于jQuery,使得在网页上优雅地呈现图片、HTML内容、Flash动画、Iframe和Ajax内容变得轻而易举。这款插件以其高度可定制性和精美的阴影效果...

    Python库 | django-fancybox-0.1.5.tar.gz

    **Python库 django-fancybox-0.1.5** 在Python的开发世界中,库是开发者的重要工具,它们提供了丰富的功能,让开发变得更加高效和便捷。`django-fancybox` 是一个针对Django框架的库,专注于增强网站的用户体验,...

    光盒jquery.fancybox-1.3.4

    "光盒jQuery.fancybox-1.3.4"是一个基于jQuery的轻量级图片和多媒体内容展示插件,它以其独特的“灯光效果”为特点,为用户提供了独特的浏览体验。这款插件主要用于网页中图片的展示,同时也支持其他类型的媒体内容...

    jquery.fancybox-1.3.4.rar

    <link rel="stylesheet" type="text/css" href="jquery.fancybox-1.3.4.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> ...

    fancyapps-fancyBox-v2.1.3-0-gcd2bc9a.zip

    fancyapps-fancyBox-v2.1.3-0-gcd2bc9a.zip 是一个包含fancyBox组件的压缩包文件,这个组件是UI设计中的一个重要元素,主要用于创建优雅的弹出框效果。fancyBox是一个开源的JavaScript库,它能够使网页中的图片、...

    Python库 | fancybox-1.0.0-py3-none-any.whl

    资源分类:Python库 所属语言:Python 资源全名:fancybox-1.0.0-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    query.fancybox-1.3.4

    1. 引入库:首先,需要在网页中引入jQuery库和Fancybox的JS及CSS文件,如`jquery.fancybox-1.3.4.js`和`fancybox.css`。 2. 初始化设置:通过JavaScript代码设置Fancybox,例如: ```javascript $(document)....

    jquery-fancybox扩展实现图片旋转

    var buttonTpl = '<button data-fancybox-rotate title="Rotate"><i class="fas fa-undo-alt"></i></button>'; ``` 2. 在 Fancybox 配置中添加此按钮,并注册点击事件: ```javascript $(document).ready...

    fancyapps-fancyBox-v2.0.4-0-g81c12d7.zip_V2 _fancyapps_fancyapps

    【标题】"fancyapps-fancyBox-v2.0.4-0-g81c12d7.zip_V2 _fancyapps_fancyapps" 指的是一个名为 "fancyapps-fancyBox" 的软件组件的特定版本,具体版本号为 v2.0.4。"0-g81c12d7" 部分可能是Git的哈希值,用于标识此...

    fancybox 图片放大查看插件

    1. **组内轮播**:通过`data-fancybox-group`属性,图片可以被分组,用户可以在同一组内左右滑动浏览其他图片。 2. **自定义样式和行为**:通过修改CSS样式,可以改变Fancybox的外观;通过调整JavaScript选项,可以...

    texlive-fancybox-20180414-22.el8.noarch.rpm

    官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装

Global site tag (gtag.js) - Google Analytics