> $(function() {
>  $('#s1').cycle({
> fx:     'scrollHorz',
> speed:  'fast',
>  timeout: 0,
> prevNextClick: onBefore,
> next:   '#next2',
> prev:   '#prev2'
> });
>

Don't use the prevNextClick option, that callback is only invoked when
the prev or next item is clicked.  Use the 'before' option instead.

$(function() {
    $('#s1').cycle({
    fx:     'scrollHorz',
    speed:  'fast',
    timeout: 0,
    before:  onBefore,
    next:   '#next2',
    prev:   '#prev2'
});

Mike

Reply via email to