开发者

Successfully using jScrollpane and Colorbox plugins together

开发者 https://www.devze.com 2023-01-07 04:17 出处:网络
Has anyone managed to get these two plugins working together: http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html

Has anyone managed to get these two plugins working together:

http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html

http://colorpowered.com/colorbox/

Am having no luck with the following:

// Colorbox dialog window
$('.w_price_assess p.price_report > a').colorbox({
    title: "Price report",开发者_如何转开发
    transition: "elastic",
    innerWidth: "800px",
    innerHeight: "699px",
    opacity: "0.5",
    onLoad: function() {
        $('#cboxContent').jScrollPane({
            showArrows: true,
            scrollbarWidth: 13,
            scrollbarMargin: 0
        });
    }
});


I managed to achieve this myself by calling jScrollPane when colorbox had finished loading the content.

Use onComplete event in colorbox and not onLoad like above.

0

精彩评论

暂无评论...
验证码 换一张
取 消