easyAccordion jquery plugin callbacks

半世苍凉 提交于 2019-12-11 19:59:36

问题


Does easyAccordion jquery plugin have any callback function to do something after the accordion item is opened?

I want to fade in the title of image after it is opened completely.


回答1:


This should work just modify the plugin js file:

jQuery(this).find('dt').not('active').click(function(){     
    jQuery(this).activateSlide();
    //begin add
    if (settings.afterSlide) { 
        settings.afterSlide();
    }
    //end add
    clearTimeout(timerInstance.value);
});

then add afterSlide parameter when you define the accordion.

$('#your-accordion-container').easyAccordion({ 
   afterSlide: function() { blah }
});


来源:https://stackoverflow.com/questions/6243870/easyaccordion-jquery-plugin-callbacks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!