質問

Please take a look at this page: http://thaispa.inigowebdesign.co.uk/

Notice the slideshow rapidly looping through the images. Try clicking the black pause button. Notice it slows the animation but doesn't stop it?

Why??

Here is my Javascript, very simple using the in-built pause/resume methods as per the documentation:

$(".slide-ctrls").click(function(){
    if($(this).hasClass("paused")){
        $(".slide-frame").cycle("resume");
        $(this).removeClass("paused");
    }else{
        $(".slide-frame").cycle("pause");
        $(this).addClass("paused");         
    }
});

Same problem in FF, Chrome & IE.

役に立ちましたか?

解決

OK, here's the answer: the 'lite' version does not support pause/resume commands. Once I replaced it with the full Cycle 2 plugin, it worked fine.

(Weirdly though, attempting to call these commands on the lite version still interferes with it as I described above)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top