Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loopnews(){
- var $active = jQuery('div.newsTicker>ul>li.active'),
- $next = $active.next('li');
- //console.log($next);
- if($next.length != 1){
- $next = jQuery('div.newsTicker>ul>li:eq(0)')
- }
- $active.fadeOut(500,function(){
- $active.removeClass('active');
- $next.addClass('active').fadeIn(1000,function(){
- setTimeout(loopnews,3000);
- })
- });
- }
Add Comment
Please, Sign In to add comment