Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize a JQuery plugin

Tags:

jquery

plugins

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.

like image 984
beingalex Avatar asked Mar 16 '26 21:03

beingalex


1 Answers

something like this:

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

    $('#barousel_itemnav').hover(function(){
        $(this).barousel({
            slideDuration: 0
        });
    }, function(){
        $(this).barousel({
            slideDuration: 5000
        });
    });
});
like image 78
AlexC Avatar answered Mar 19 '26 16:03

AlexC