516 bytes added
, 5 years ago
/**
* Scrolling text
*
* 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() {
setInterval('AutoScroll("#scrollDiv")',10000);
//image loading effect
$('img').on('load', function(e){
var target = $(this);
target.css('opacity', 0).animate({opacity: 1}, 1000);
});
});