Advertisement
Guest User

Detect mouse out of WP-ImageFlow2

a guest
Dec 1st, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Detect mouse out of imageflow */
  2. function onMouseOut(event) {
  3.         e = event.toElement || event.relatedTarget;
  4.     if ((e === null)) {
  5.     thisObject.dragobject = null; thisObject.dragging = false;
  6.     }
  7.     else if ((e.parentNode == this || e == this || e.parentNode.parentNode == this)) {
  8.         return;
  9.     }
  10.     thisObject.dragobject = null; thisObject.dragging = false;
  11. };
  12.  
  13. this.imageflowcustom2_div.addEventListener('mouseout',onMouseOut,true);
  14. /* END Detect mouse out of imageflow */
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement