I am new to js
, and jquery
, and I am trying to fade in and out list items.
Im using the jQuery Cycle Plugin (with Transition Definitions).
Its working just fine, however I need this to loop. I am sure its something simple. However I cannot find a answer.:(
<script type="text/javascript">
function InOut( elem )
{
elem.delay()
.fadeIn(400)
.delay(5000)
.fadeOut(
function(){ InOut( elem.next() ); }
) ;
}
$(function(){
$('#newsticker li').hide();
InOut( $('#newsticker li:first') );
});
</script>