开发者

Customize a JQuery plugin

开发者 https://www.devze.com 2023-03-27 05:15 出处:网络
I am brand new to JQuery and my Javascript knowledge is limite开发者_开发百科d to only knowing how to work with Mootools. I need to change the behavior of this carousel so that when you mouseover, it

I am brand new to JQuery and my Javascript knowledge is limite开发者_开发百科d 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.


something like this:

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

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

精彩评论

暂无评论...
验证码 换一张
取 消