【问题标题】:Integrate Ad Gallery and Colorbox集成广告库和彩盒
【发布时间】:2012-10-03 21:39:50
【问题描述】:

我有一个 Ad Gallery 插件 (http://adgallery.codeplex.com/documentation),当我点击图片时,它会打开 colorbox 插件。 Ad gallery 提供了这个代码 sn-p,它与 Fancybox 集成:

$(".ad-gallery").on("click", ".ad-image", function() {
     $.fancybox.open({
           href : $(this).find("img").attr("src"),
           closeBtn: false,
           closeClick : true,
           openEffect : 'elastic',
           openSpeed : 150,
           closeEffect : 'elastic',
           closeSpeed : 150,
           helpers : {
           overlay : null
           }
           });
        });

colorbox 代码应该如何与 Ad Gallery 集成?

【问题讨论】:

    标签: colorbox


    【解决方案1】:

    colorbox 几乎是一样的:

    $('.ad-gallery').on('click', '.ad-image', function () {
        $.colorbox({
            href: $(this).find('img').attr('src'),
            title: $(this).find('.ad-image-description').text()
        });
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-19
      • 2014-08-08
      相关资源
      最近更新 更多