kswedberg / jquery-carousel-lite

A jQuery carousel plugin based on jCarouselLite by Ganeshji Marwaha
MIT License
177 stars 59 forks source link

autoscroll value ignored #7

Closed rocky76 closed 12 years ago

rocky76 commented 12 years ago

First time reporting an issue, so please bare with me, and thanks for a great "hover-pause" plugin.

Using jcarousellite_1.3.1.js Live site at http://www.advancedpricinglogic.com/

I found that setting the auto option is disregarded. I've set it to an integer, say 400, and it still waits 5 seconds to auto scroll. I double checked my code with Ganeshji's jCarousellite plugin, and it respects the auto option set. I'm still too new to JS to bug fix semi-complex javascript? Any help would be great.

<script>
    $(document).ready(function() {
        $("#slideshow").jCarouselLite({
        visible: 1,
        auto: 400,
        speed: 250,
        btnGo:
        ["#nav-1", "#nav-2",
         "#nav-3", "#nav-4",
         "#nav-5", "#nav-6", "#nav-7"]
        });
});
</script>
kswedberg commented 12 years ago

sorry about that. I changed the way those options worked a while ago, but failed to update the documentation. The auto option is now a Boolean. Set it to true if you want auto scrolling. You can adjust the interval between transitions by setting the timeout option. It should look like this:

$(document).ready(function() {
        $("#slideshow").jCarouselLite({
        visible: 1,
        auto: true,
        timeout: 400,
        speed: 250,
        btnGo:
        ["#nav-1", "#nav-2",
         "#nav-3", "#nav-4",
         "#nav-5", "#nav-6", "#nav-7"]
        });
});

feel free to re-open this issue if that doesn't solve the problem for you.

rocky76 commented 12 years ago

Argh, I should have looked closer at the defaults. Thanks.

kswedberg commented 12 years ago

No problem at all! I'm glad you reported it, because the readme really should have reflected the change. Thanks!