OZONE Asylum
Forums
DHTML/Javascript
HTML height
This page's ID:
28116
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
http://developer.yahoo.com/yui/docs/dom/overview-summary-Dom.js.html This is the Yahoo dom library. You can use the methods getViewPortHeight() and getViewPortWidth(), the code is right there,for the height it looks like this [code]getViewportHeight: function() { var height = -1; var mode = document.compatMode; if ( (mode || isIE) && !isOpera ) { switch (mode) { // (IE, Gecko) case 'CSS1Compat': // Standards mode height = document.documentElement.clientHeight; break; default: // Quirks height = document.body.clientHeight; } } else { // Safari, Opera height = self.innerHeight; } return height; }[/code] Which really just breaks down to document.documentElement.clientHeight or document.body.clientHeight or self.innerHeight. Dan @ [url=http://www.codetown.org]Code Town[/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »