| Author |
How to Know Where Cursor is Positioned
|
Steve Dyke
Ranch Hand
Joined: Nov 16, 2004
Posts: 1254
|
|
I have a page with two DIV tags on it(and upper section and lower section). I place a jsp in the lower section using jQuery load. When in the lower section I use the following code to keep up with the cursor so when mousedown is detected a third DIV tag is displayed at that point. This all works good except I tried to make the lower section DIV tag scrollable using overflow. Now my third DIV tag does not display at the cursor position it is offset usually lower. I figure it is the scrolling offset of the lower DIV tag but I have no idea how to compensate for this.
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Are you putting the div inside of the layer that scrolls and not on the document level?
The div also has a scrollTop
Eric
|
 |
 |
|
|
subject: How to Know Where Cursor is Positioned
|
|
|