Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 16:05, 17 April 2015
98 bytes added
,
9 years ago
no edit summary
Line 1:
Line 1:
/* Sitenotice autoscroll */
/* Sitenotice autoscroll */
−
function AutoScroll(
obj
){
+
function AutoScroll(
objNotice
) {
−
$(
obj
).find("ul:first").animate({
+
$(
objNotice
).find("ul:first").animate({
−
marginTop:"-25px"
+
marginTop:"-25px"
−
},500,function(){
+
},500,function(){
−
$(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
+
$(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
−
});
+
});
}
}
−
$(document).ready(function(){
+
−
setInterval('AutoScroll("#scrollDiv")',5000);
+
$(document).ready(function() {
+
setInterval('AutoScroll("#scrollDiv")',5000);
+
$('img').on('load', function(e){
+
var target = $(this);
+
target.css('opacity', 0).animate({opacity: 1}, 1000);
+
});
});
});
Gensui Hime
Bureaucrats
,
Administrators
23,827
edits