Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery('#circulo-slide-guia li:not(:eq(0), :eq(1))').hide();
- jQuery('#circulo-slide-left').click(function() {
- var pAtual = jQuery('#circulo-slide-guia li:visible').eq(0);
- if ( pAtual.index() > 0 ) {
- pAtual.next().fadeOut('fast', function() {
- pAtual.prev().show();
- });
- }
- });
- jQuery('#circulo-slide-right').click(function() {
- var pAtual = jQuery('#circulo-slide-guia li:visible').eq(0);
- if ( (pAtual.index() + 2) < jQuery('#circulo-slide-guia li').length ) {
- pAtual.fadeOut('fast', function() {
- pAtual.next().next().show();
- });
- }
- });
Add Comment
Please, Sign In to add comment