Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to lock the scroll of div

 
jeff rusty
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not put Urgent in your posts. (As we always say: why did you wait to the last minute?) Removing it.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic