• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "MediaWiki:Common.js"

From Kancolle Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
     });
 
     });
 
}
 
}
    setInterval('AutoScroll("#scrollDiv")',5000);
 
    $('img').on('load', function(e){
 
        var target = $(this);
 
        target.css('opacity', 0).animate({opacity: 1}, 1000);
 
  });
 
});
 

Revision as of 16:15, 17 April 2015

/* Sitenotice autoscroll */
function AutoScroll(objNotice) {
    $(objNotice).find("ul:first").animate({
        marginTop:"-25px"
    },500,function(){
        $(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
    });
}