2008-12-19から1日間の記事一覧

連鎖的に発生するイベントに追随させるanimateメソッドの書き方

scrollイベントとかmouseoverイベントとかで。 queue([])でキューをクリアするのがポイント。 ctrlMove : function(){ var o=this,c=o.cfg; if(c.timer)clearTimeout(c.timer); c.timer=setTimeout(function(){ c.target.queue([]).animate({ top:o.getNextP…