Callback function to be executed when autoplay is resumed, i.e. when cursor leaves accordion's direct children .jAccordion-slidesWrapper.
The described callback function is called only if the below listed conditions were met.
Callback function is specified in the configuration section of the plugin.
$('selector').jAccordion({ onResume : function(e) { //Here goes your code, e.g. alert('Autoplay resumed and this slide should remain open for next ' + e.remainingTime + 'ms.'); //You can call any public method using this.method() } });
Event is basically an object passed to function as parameter. Object can have multiple attributes which store important callback-related information.
You can work with this object like with any javascript object:
$('selector').jAccordion({ onResume : function(e) { //You can gain access to event property remainingTime using e.remainingTime } });
Demo 1 demonstrates how to create your own function displaying when autoplay is paused and when it's resumed plus amount of time for which active slide should remain open. Demo also uses the opposite callback onPause().
jAccordion by maniacpc, exclusively for CodeCanyon