> i need something similar to the solution > onhttp://malsup.com/jquery/cycle/goto.html, > but with an addition: > i want to be able to call $('#s1').cycle(2) with an onAfter handler > and $('#s1').cycle(3) without it (basically, i want the onAfter to > execute depending on a certain condition)
This is not supported. The before/after callbacks are invoked unconditionally. This is important because the plugin leverages the callback framework as well, so there is often more than one before/ after callback. Mike