Scroller/Relative position

  • Thread starter Gregory Casamento
  • Start date
G

Gregory Casamento

I have a relatively large/long webpage on which I am trying to display
a box (using DHTML) in the center of the users view. This box must
be centered if the user is part of the way down the page when the user
hits a button.

Does anyone know how to get the scrollers relative positions to do
this? I've already tried document.body.scrollLeft and
document.body.scrollTop and those don't seem to work. The
application I'm working on supports both IE and Netscape so a generic
solution would be preferrable.

Thanks so much for any help, in advance. Please email me at:
(e-mail address removed), if possible.

Thanks, GJC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top