Connecting Tech Pros Worldwide Help | Site Map

Problem with DIV and mouse selection

  #1  
Old July 23rd, 2005, 08:05 PM
Jennifer
Guest
 
Posts: n/a
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

  #2  
Old July 23rd, 2005, 08:05 PM
VK
Guest
 
Posts: n/a

re: Problem with DIV and mouse selection


look for scrollTop property

P.S. Hi all!

  #3  
Old July 23rd, 2005, 08:13 PM
Jennifer
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
slow response in table cells <TD> to mouseover with IE6 but fine inFirefox. markszlazak@gmail.com answers 4 June 27th, 2008 08:13 PM
slow response in table cells <TD> to mouseover with IE6 but fine inFirefox. markszlazak@gmail.com answers 2 June 1st, 2008 02:35 PM
Is there a way to detect a held-down button while the mouse is moving? Eric Layman answers 6 February 3rd, 2007 09:05 PM
Hide/Show Selection List srampally@gmail.com answers 5 May 12th, 2006 04:05 PM