1

有没有人设法让这两个插件一起工作:

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

http://colorpowered.com/colorbox/

我对以下情况没有运气:

// 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
        });
    }
});
4

1 回答 1

1

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.

于 2010-07-14T18:31:24.560 回答