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

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


            z.timer = setInterval(function(){
                z.step(from, to);
            }, 13);
        };

        // Simple 'show' function
        z.show = function(){
            if ( !z.el.orig ) z.el.orig = {};

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

            z.o.show = true;

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

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

        // Simple 'hide' function
        z.hide = function(){
            if ( !z.el.orig ) z.el.orig = {};

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

            z.o.hide = true;

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

        //Simple 'toggle' function
        z.toggle = function() {
            if ( !z.el.orig ) z.el.orig = {};