Frage

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.

War es hilfreich?

Lösung

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)

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top