Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
MediaWiki:Gadget-SiteScroll.js
(view source)
Revision as of 02:28, 10 May 2021
43 bytes added
,
3 years ago
no edit summary
Line 6:
Line 6:
window.AutoScroll = function(objNotice) {
window.AutoScroll = function(objNotice) {
−
$(objNotice).find("ul:first").animate(
+
$(objNotice).find("ul:first"
).stop(true, true
).animate(
{
{
marginTop:"-25px"
marginTop:"-25px"
Line 14:
Line 14:
$(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
$(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
}
}
−
)
+
)
;
−
}
+
}
;
$(function() {
$(function() {
−
setInterval(
'
AutoScroll(
"
#scrollDiv
"
)
'
,10000);
+
setInterval(
function() { window.
AutoScroll(
'
#scrollDiv
'
)
}
, 10000);
−
//image loading effect
+
// image loading effect
$('img').on('load', function(e){
$('img').on('load', function(e){
var target = $(this);
var target = $(this);
target.css('opacity', 0).animate({opacity: 1}, 1000);
target.css('opacity', 0).animate({opacity: 1}, 1000);
−
})
+
})
;
−
})
+
})
;
がか
cssedit, gkautomate
7,064
edits