jQuery 1.0.4 - New Wave Javascript(js源文件)

2019-06-03 09:49:42刘景俊


            // Remember where we started, so that we can go back to it later
            z.el.orig[prop] = this.cur();

            if(oldDisplay == 'none')  {
                z.o.show = true;

                // Stupid IE, look what you made me do
                if ( prop != "opacity" )
                    y[prop] = "1px";

                // Begin the animation
                z.custom(0, z.el.orig[prop]);    
            } else {
                z.o.hide = true;

                // Begin the animation
                z.custom(z.el.orig[prop], 0);
            }        
        };

        // Each step of an animation
        z.step = function(firstNum, lastNum){
            var t = (new Date()).getTime();

            if (t > z.o.duration + z.startTime) {
                // Stop the timer
                clearInterval(z.timer);
                z.timer = null;

                z.now = lastNum;
                z.a();