Connecting Tech Pros Worldwide Help | Site Map

Problem with DIV and mouse selection

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 07:05 PM
Jennifer
Guest
 
Posts: n/a
Default Problem with DIV and mouse selection

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, 07:05 PM
VK
Guest
 
Posts: n/a
Default Re: Problem with DIV and mouse selection

look for scrollTop property

P.S. Hi all!

  #3  
Old July 23rd, 2005, 07:13 PM
Jennifer
Guest
 
Posts: n/a
Default 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! ;)

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.