Javascript and Style coordinates Question
- From: "Lars Netzel" <uihsdf@xxxxxx>
- Date: Mon, 15 Aug 2005 12:04:22 +0200
I have a little <Div> following the Mousecursor on mousemove event of
page...
refObject.style.top = event.y
refObject.style.left = event.x
It works fine... BUT when there's a lot more on the page (a growing
Datagrid) which make page need to scroll and you scroll down... the
coordinates does not match the mouscursor anymore since the Top value is not
getting as big as it needs from the event.y property
So how do I calculate how much I have to add to the top style value or can I
somehow convert the event.y to the actualy value from the Top of the page?
best Regards/
Lars Netzel
.
- Follow-Ups:
- Re: Javascript and Style coordinates Question
- From: Chris Botha
- Re: Javascript and Style coordinates Question
- Prev by Date: server.transfer and forms authentication
- Next by Date: Re: Find and replace problem
- Previous by thread: server.transfer and forms authentication
- Next by thread: Re: Javascript and Style coordinates Question
- Index(es):
Relevant Pages
|