zoukankan      html  css  js  c++  java
  • jquery 弹出遮罩插件 prettyPhoto 参数说明

    插件地址:

    http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

    部分参数说明:

    $.fn.prettyPhoto = function(pp_settings) {
            pp_settings = jQuery.extend({
                animation_speed: 'fast',//速度
                slideshow: 5000,
                autoplay_slideshow: false,
                opacity: 0.80, //透明度
                show_title: true,
                allow_resize: true,
                default_ 500,
                default_height: 344,
                counter_separator_label: '/',
                theme: 'pp_default', //主题
                horizontal_padding: 20,
                hideflash: false,
                wmode: 'opaque',
                autoplay: true,
                modal: false,
                deeplinking: true, //是否启用参数保存
                overlay_gallery: true,
                keyboard_shortcuts: true,
                changepicturecallback: function() {},
                callback: function() {},

    如果有朋友使用的是3.1.3版本  怎么样都不能去除 URL中的 #!prettyPhoto

    这是因为代码有个BUG

    修改为:

    function clearHashtag() {
            url = location.href;
            hashtag = (url.indexOf('#!prettyPhoto')!=-1) ? true: false;
            if (hashtag) location.hash = "!prettyPhoto";
        }

    最近遇到很多问题,jquery新版本与旧版本不兼容,同样的代码都是用示例调用,1.6.2与1.3.2结果不一样

  • 相关阅读:
    hdu 3746 Cyclic Nacklace
    hdu 3336 Count the string
    hdu 1358 Period
    hiho一下 第一周 最长回文子串
    KMP算法详解
    Java 之 static的使用方法(6)
    Jave 之方法-函数(5)
    Java 之数组(4)
    大数据-storm学习资料视频
    大数据-spark-hbase-hive等学习视频资料
  • 原文地址:https://www.cnblogs.com/hejunrex/p/2163523.html
Copyright © 2011-2022 走看看