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

Changes

Jump to navigation Jump to search
no edit summary
Line 4: Line 4:  
  * Original from touhouwiki
 
  * Original from touhouwiki
 
  */
 
  */
function AutoScroll(objNotice) {
  −
    $(objNotice).find("ul:first").animate({
  −
        marginTop:"-25px"
  −
    },500,function(){
  −
        $(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
  −
    });
  −
}
     −
$(document).ready(function() {
+
window.AutoScroll = function(objNotice) {
     setInterval('AutoScroll("#scrollDiv")',10000);
+
    $(objNotice).find("ul:first").stop(true, true).animate(
     //image loading effect
+
    {
 +
    marginTop:"-25px"
 +
    },
 +
    500,
 +
    function(){
 +
        $(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
 +
    }
 +
    );
 +
};
 +
 
 +
$(function() {
 +
     setInterval(function() { window.AutoScroll('#scrollDiv') }, 10000);
 +
     // image loading effect
 
     $('img').on('load', function(e){
 
     $('img').on('load', function(e){
 
         var target = $(this);
 
         var target = $(this);
cssedit, gkautomate
7,060

edits

Navigation menu