beingalex
beingalex

Reputation: 2476

Customize a JQuery plugin

I am brand new to JQuery and my Javascript knowledge is limited to only knowing how to work with Mootools. I need to change the behavior of this carousel so that when you mouseover, it stops rotating.

I need to know if there is a way of doing this without editing the plug in too much.

Upvotes: 3

Views: 329

Answers (1)

AlexC
AlexC

Reputation: 9661

something like this:

$(document).ready(function(){
    $('#barousel_itemnav').barousel({
        slideDuration: 5000
    });

    $('#barousel_itemnav').hover(function(){
        $(this).barousel({
            slideDuration: 0
        });
    }, function(){
        $(this).barousel({
            slideDuration: 5000
        });
    });
});

Upvotes: 3

Related Questions