[thelist] Javascript problem.....
CDitty
mail at redhotsweeps.com
Fri Apr 6 00:03:28 CDT 2001
I have some OLD javascript that I go from the list about 6 months ago. The
code was working last time I messed with it, but for some reason, it will
not work any longer. Can someone look at this code and see what the
problem is? There error I get is Object Required.
Any help is appreciated.
Thanks
<script language="JavaScript">
<!--
var wHeight, wWidth, sHeight, sWidth, bitDepth;
if (document.all){
wHeight = document.body.clientHeight;
wWidth = document.body.clientWidth; <----Error here
sHeight = screen.height;
sWidth = screen.width;
bitDepth = screen.colorDepth;
}
else if (document.layers){
wHeight = window.innerHeight;
wWidth = window.innerWidth;
sHeight = screen.height;
sWidth = screen.width;
bitDepth = screen.colorDepth;
}
document.cookie = "wHeight=" + wHeight + ";";
document.cookie = "wWidth=" + wWidth + ";";
document.cookie = "sHeight=" + sHeight + ";";
document.cookie = "sWidth=" + sWidth + ";";
document.cookie = "bitDepth=" + bitDepth + ";";
// -->
</script>
More information about the thelist
mailing list