Detecting Mouse Moving Up?

barman

New member
Aug 14, 2006
6,507
156
0
Internets
Hi friends.

I want to basically do #6 from this post...

7 jQuery Effects To Explode Your PPV CTR! | PPVPlaybook.com

The plugin recommended is this one:

Activebar2 - Westhoffswelt - Welcome to the real world


Unfortunately, this plugin is amateur hour. Anyone can detect a hover over a hidden div element and pop something out.

So i want to detect the motion of the mouse cursor, specifically going up. That way I can detect if they are moving their mouse up to close (and not triggering the event when the mouse is moving down to the cursor)


I could hax some mouse gestures plugins but that seems like a lot of overhead for something that appears to be pretty simple.

Tutorials:Mouse Position - jQuery JavaScript Library
 


if you just follow the guide in that last link of yours, and add a few lines where you store the y value after you check it, you can then just say

if(oldY > currentY)
{
it dun' gon' up
}else{
shit went down yo
}

look at the performance of the numbers on that page you linked to, it's fast as fuck
 
if you just follow the guide in that last link of yours, and add a few lines where you store the y value after you check it, you can then just say

if(oldY > currentY)
{
it dun' gon' up
}else{
shit went down yo
}

look at the performance of the numbers on that page you linked to, it's fast as fuck

no shit, so how do i capture it