JS Fiddle находится здесь: http://jsfiddle.net/8nqkA/2/
HTML
<div>
<div class="show">Test 1</div>
<div class="hidden">Test 2</div>
<div class="hidden">Test 3</div>
<div class="hidden">Test 4</div>
</div>
jQuery
$(document).ready(function() {
myFunc($(".show"));
});
function myFunc(oEle)
{
oEle.fadeOut('slow', function(){
if (oEle.next())
{
oEle.next().fadeIn('slow', function(){
myFunc(oEle.next());
});
}
else
oEle.siblings(":first").fadeIn('slow', function(){
myFunc(oEle.siblings(":first"));
});
});
}
CSS
.hidden {
display: none;
}
Попытка вернуть его к тесту 1 после его завершения, но не работает. Просто хочу, чтобы все началось сначала, что в этом плохого?
if (oEle.next())
-- Попробуйте проверить свойствоlength
.if (oEle.next().length)
- person ahren   schedule 21.02.2013