27-04-2011, 12:15
(Ten post był ostatnio modyfikowany: 27-04-2011, 12:16 przez Kartofelek.)
if ($lista.position().left > -maxLeft) {
$($lista).not(':animated').animate({
'left' : '-=' + odleglosc
},500);
}
na
if ($lista.position().left > -maxLeft) {
$($lista).not(':animated').animate({
'left' : '-=' + odleglosc
},500);
} else {
$($lista).not(':animated').animate({'left':0},500);
}
a jak to ci nie wystarczy to infinite carusel:
http://doman.art.pl/kursjs/kurs/jquery/plugin.html
$($lista).not(':animated').animate({
'left' : '-=' + odleglosc
},500);
}
na
if ($lista.position().left > -maxLeft) {
$($lista).not(':animated').animate({
'left' : '-=' + odleglosc
},500);
} else {
$($lista).not(':animated').animate({'left':0},500);
}
a jak to ci nie wystarczy to infinite carusel:
http://doman.art.pl/kursjs/kurs/jquery/plugin.html