Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll Position inconsitencies - save my life

Status
Not open for further replies.

AlbertAguirre

Programmer
Nov 21, 2001
273
US
I am worn out, sick and tired of trying to display my div layer properly in IE 6.

Such a simple thing, I want the div layer to appear in a specified x y coordinate even if the user scroll down the page.

Why is this so hard????

Can someone tell me how to get the scroll position???

I tried all the following:

document.documentElement.scrollTop
window.pageXOffset
document.body.scrollTop

All return 0 or undefined

Help? Please before I end it all out of misery...
 
this works

document.documentElement.scrollTop

Why are there so many browser inconsistencies!?!?!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top