This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* jQuery autoResize (textarea auto-resizer) | |
* @copyright James Padolsey http://james.padolsey.com | |
* @version 1.04 | |
* | |
* cracked by icyleaf <[email protected]> | |
* Search and Find the keyword '[NEW ADDED]' for details. | |
*/ | |
(function($){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addEventSimple(obj, evt, fn) {//常用函数 | |
if (obj.addEventListener) // W3C | |
obj.addEventListener(evt, fn, false); | |
else if (obj.attachEvent) // Microsoft | |
obj.attachEvent('on' + evt, fn); | |
}; | |
function removeEventSimple(obj, evt, fn) { | |
if (obj.removeEventListener) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addEvent(obj,evt,fn) { | |
if (obj.addEventListener && !Browser.isOpera) { | |
obj.addEventListener(evt,fn,false); | |
return obj; | |
} | |
if (!obj.functions) obj.functions={}; | |
if (!obj.functions[evt]) | |
obj.functions[evt]=[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Tween = { | |
Linear:function (start,alter,curTime,dur) {return start+curTime/dur*alter;},//最简单的线性变化,即匀速运动 | |
Quad:{//二次方缓动 | |
easeIn:function (start,alter,curTime,dur) { | |
return start+Math.pow(curTime/dur,2)*alter; | |
}, | |
easeOut:function (start,alter,curTime,dur) { | |
var progress =curTime/dur; | |
return start-(Math.pow(progress,2)-2*progress)*alter; | |
}, |
NewerOlder