Connecting Tech Pros Worldwide Help | Site Map

Problem with DIV and mouse selection

Jennifer
Guest
 
Posts: n/a
#1: Jul 23 '05
Hi all,
I made a page with a scrolling DIV (I change the "top" property to make
it scroll).
But if I try to select the text inside the DIV (longer than visible
page) and while selecting I make it scroll down, a mess happens.
In particular, the offsetHeight property keeps on retaining the "old"
top coordinate, but what I see is a div scrolled down after dragging
the mouse selection.
I found no other property to check that contains the new coords, so the
routine that scrolls the div uses the old coordinate and messes all up.
The same "div dragging undetectable movement" happens both in IE and
FF.

Can you help me? thx

VK
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Problem with DIV and mouse selection


look for scrollTop property

P.S. Hi all!

Jennifer
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Problem with DIV and mouse selection



VK wrote:[color=blue]
> look for scrollTop property
>
> P.S. Hi all![/color]

Thank you, it's exactly what I was searching for! ;)

Closed Thread