2010/04/20 (火) 20:06:52 ◆ ▼ ◇ [qwerty]llback){return this.animate({opacity:to},speed,callback);},animate:func
callback);return this[optall.queue===false?"each":"queue"](function(){i
den=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hi
f(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.o
w="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function
st(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=
if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px
elf.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)
});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)|
type=="string"&&!fn))return queue(this[0],type);return this.each(funct
e).push(fn);if(queue(this,type).length==1)fn.call(this);}});},stop:func
ueue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(tim
f(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,
f(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}r
.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call
ed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.i
ng.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.durat
jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(op
pt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,d
((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,
s.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={u
,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(th
="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem
Query.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(j
this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.u
self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.el
terval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;
val(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.
tions.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.p
);},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.
ep:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+th
is.options.curAnim[this.prop]=true;var done=true;for(var i in this.opti
his.options.display!=null){this.elem.style.overflow=this.options.overfl
m,"display")=="none")this.elem.style.display="block";}if(this.options.h
show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,th
urn false;}else{var n=t-this.startTime;this.state=n/this.options.durati
wing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.
Query.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scroll
x.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.styl