Sorry *embarrassed - stray comma after pagerFactory.

Problem solved.

> Hi,
>
> I seem to have the jQuery cycle plugin working in most browsers, but
> get an error in IE6/7 when using the following code:
>
> <script type="text/javascript">
>     $(function() {
>       $('#slideshow')
>         .cycle({
>           fx: 'fade',
>           timeout: 0,
>           cleartype: 1,
>           speed: '1500',
>           prev: '#prev',
>           next: '#next, #slideshow',
>           pager: '#numbered',
>           pagerAnchorBuilder: pagerFactory,
>        });
>        function pagerFactory(idx, slide) {
>         var s = idx > 8 ? ' style="display:none"' : '';
>         return '<li'+s+'><a href="#">'+(idx+1)+'</a></li>';
>       };
>     });
>   </script>
>
> If I remove 'pagerAnchorBuilder: pagerFactory' & the function it
> works ... I don't understand what it's doing!?
>
> Hopefully someone can see whats wrong :)
>
> Thanks,
> Dan
>
> NB: I can upload an example page if required.

Reply via email to