1

I am using the Jquery cycle plug in with the pager. I have a lot of items to page through. Is there a way I can add back and previous arrows to paginate the pager?

So I have like:

1 2 3 4 5 6 7 8 9

and I want the same but < 1 2 3 4 5 6 7 8 9 >

Is there an elegant way to code this? Many thanks for your help!

4

2 に答える 2

0

私はこのサイトでこれを行います: http://www.naomimorgulis.com/

基本的に、ページャーの最後に到達すると、サムネイル付きの新しいページャーのセットを動的に生成します。これが正確にエレガントかどうかはわかりませんが、機能します。

于 2010-03-22T19:59:08.853 に答える
-1

確かに、パラメータprevnextパラメータを使用して、次/前のボタンにする要素を指定するだけです。

var $prev = $('<span id="prev">→&lt;/span>'),
    $next = $('<span id="next">←&lt;/span>'),
    $pager = $('<span id="pager" />');
$('foo').after($prev).after($pager).after($next).cycle({ prev: $prev, next: $next, pager: $pager });

デモ

于 2010-03-22T19:33:26.923 に答える