OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
document.height cant be 0???
This page's ID:
23844
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Ok, I expanded the code a bit and it seems to work wel in both IE and Firefox. If it does err, it errs on the side of caution. [code] function setRails() { docHeightOne = document.documentElement.offsetHeight; docHeightTwo = document.body.scrollHeight; if (docHeightOne > docHeightTwo) docHeight = docHeightOne; else docHeight = docHeightTwo; leftRail = document.getElementById("left"); rightRail = document.getElementById("right"); leftRail.style.height = docHeight + "px"; rightRail.style.height = docHeight + "px"; } [/code] Still, I'm a total novice to the DOM . I don't know why document.height doesn't give me the height of the document directly, and I may still be doin' stuff I shouldn't be doing here. You can test this code out here: www.shootpool.info/test.html Comments? Criticisms? [img]http://pegasus.cc.ucf.edu/~co097871/schitzo88x31.gif[/img]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »