jQuery-cycle2 nach Funktion

Wie können wir hinzufügen, nach, vor call-back-Funktion im neuen jQuery Zyklus ,
Hier Links http://jquery.malsup.com/cycle2

Ich arbeite mit jQuery cycle(alte version), aber ich weiß nicht, wie das umzusetzen, cycle2(neue version)

http://jsfiddle.net/3vjgJ/2/

Beispiele von jQuery-code von der alten version-Zyklus (check nach Funktionscode )

$('#mySlideshow').cycle({ 
    fx:     'scrollHorz', 
     after: function() {
        $('ul li').removeClass('test');
        $(this).addClass('test') 
    }
});

<ul id="mySlideshow" class="cycle-slideshow" data-cycle-fx="scrollHorz" data-cycle-slides="li" data-cycle-timeout="0" data-cycle-prev=".prev" data-cycle-next=".next">
   <li><img src="http://placehold.it/350x150" alt=""></li>
   <li><img src="http://placehold.it/350x150" alt=""></li>
</ul>
<a href=# class="prev">Prev</a>
<a href=# class="next">Next</a>
</ul>
InformationsquelleAutor ShibinRagh | 2013-07-11
Schreibe einen Kommentar