开发者

Customize a JQuery plugin

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜