Page is a not externally linkable
pageoneresults - 2:58 pm on Sep 7, 2007 (gmt 0)
document.frmURI.clientWidth.value = vpw; Based on the statistics I'm looking at right now, everything appears to be in order. [edited by: jatar_k at 6:39 pm (utc) on Sep. 7, 2007]
It was RonPK who got me started with all of this after he posted a bit of JavaScript to capture viewport data. We've since expanded that little snippet of JS and it now looks like this. RonPK, see anything out of order here? <script type="text/javascript">
function setResolution() {
if (self.innerWidth) {
vpw = self.innerWidth;
vph = self.innerHeight;
} else if (document.documentElement&&document.documentElement.clientWidth) {
vpw = document.documentElement.clientWidth;
vph = document.documentElement.clientHeight;
} else {
vpw = document.body.clientWidth;
vph = document.body.clientHeight;
}
document.frmURI.clientHeight.value = vph;
document.frmURI.availWidth.value = screen.availWidth;
document.frmURI.availHeight.value = screen.availHeight;
document.frmURI.screenWidth.value = screen.width;
document.frmURI.screenHeight.value = screen.height;
}
setResolution();
</script>
[edit reason] simplify code [/edit]