Learn more about Sharing Best Practices for better understanding.
V1: This version has properties but the output would be with numeric keys, Example (Google, Bing and Yahoo are the Hyperlinks/Clickable):
1: Google
2: Bing
3: Yahoo
function isMouseLeaveOrEnter(e, handler) { | |
if (e.type != 'mouseout' && e.type != 'mouseover') return false; | |
var reltg = e.relatedTarget ? e.relatedTarget : e.type == 'mouseout' ? e.toElement : e.fromElement; | |
while (reltg && reltg != handler) | |
reltg = reltg.parentNode; | |
return (reltg != handler); | |
} |
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |