Fade in и out с jQuery
CODE
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | $('div.hint').children('ul').children('li').hide(); $('p.comments').click(function(){ var trgtUL = $(this).next('div.hint').children('ul'); function fadeInOut(i) { trgtUL.children('li').eq(i).fadeIn(3000).fadeOut(3000, function() { if ($(this).next().is('li')) { fadeInOut(i + 1); } else { return false; } }); } fadeInOut(0); }); |





