开发者

EasyAccordion jquery plugin resume after click

开发者 https://www.devze.com 2023-03-10 09:12 出处:网络
\"easyAccor开发者_开发知识库dion\" jquery plugin stop its movement after clicking on a tab and never resume after that.but i need it , should i implement it myself or this plugin has it embeded? i cou

"easyAccor开发者_开发知识库dion" jquery plugin stop its movement after clicking on a tab and never resume after that.but i need it , should i implement it myself or this plugin has it embeded? i couldn't find such option.


Search for this part of code:

    jQuery(this).find('dt').not('active').click(function(){     
        jQuery(this).activateSlide();
        clearTimeout(timerInstance.value);
    }); 

Replace it with:

    jQuery(this).find('dt').not('active').click(function(){     
        jQuery(this).activateSlide();
        clearTimeout(timerInstance.value);

        timerInstance.value = setTimeout(function(){
            accordianInstance.rotateSlides(interval, timerInstance);
        }, interval);

    }); 

Greetings,

Michel

0

精彩评论

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

关注公众号