aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes how to lock the scroll of div Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to lock the scroll of div " Watch "how to lock the scroll of div " New topic
Author

how to lock the scroll of div

jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
hi,
can any one help me how to lock the scroll of a div at one particular instance and after sometime i want it to scroll again.. my requirement is I have a popup window which i have made initially hidden on clickin on a button i ll make that visible . now when the popupdiv is visible i want to lock the scroll of the div that contains the popup Div

[Eric - changed title]
[ December 15, 2006: Message edited by: Eric Pascarello ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
use onscroll to force a scrollTop location.
http://radio.javaranch.com/pascarello/2005/12/14/1134573598403.html

Eric
[ December 15, 2006: Message edited by: Eric Pascarello ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Do not put Urgent in your posts. (As we always say: why did you wait to the last minute?) Removing it.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to lock the scroll of div