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
58 bytes added
,
3 years ago
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