Changes

no edit summary
Line 4: Line 4:  
  * Original from touhouwiki
 
  * Original from touhouwiki
 
  */
 
  */
var AutoScroll = function(objNotice) {
+
 
     $(objNotice).find("ul:first").animate({
+
window.AutoScroll = function(objNotice) {
        marginTop:"-25px"
+
     $(objNotice).find("ul:first").stop(true, true).animate(
    },500,function(){
+
    {
        $(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
+
    marginTop:"-25px"
     });
+
    },
 +
    500,
 +
    function(){
 +
        $(this).css({marginTop: "0px"}).find("li:first").appendTo(this);
 +
    }
 +
     );
 
};
 
};
   −
$(document).ready(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);
cssedit, gkautomate
7,060

edits