0

Following on from this discussion:

Pause Flexslider when overlay is open

PrettyPhoto overlay is called div.pp_overlay but when I amend the code to account for this it ignores it.

    start: function(slider) {
        $('div.pp_overlay').hover(function() {
            slider.pause();
        });

        $('div.pp_overlay').click( function() {
            slider.resume();
        });
    }
});

Am I missing something?

4

1 回答 1

0

也许你需要在里面调用那个函数

jQuery(document).ready(function{

*/Here goes the function/*

});

或者

jQuery(window).load(function{

*/Here goes the function/*

});

此致。

于 2013-01-25T10:03:35.820 回答