So I'm trying to get my site to dynamically shift with the size of the browser when it loads up...It works fine in Firefox 3, Opera and (as far as I know), FF2.
IE is the only browser that I see that has any problem with it whatsoever, which never ceases to surprise me, as IE tends to eat all forms of code, regurgitate them, and devour the slimy and putrid remains, just to continue the process.
Anyways...I'm not really a whiz at JavaScript (just started using it a week ago), and I have no idea how to fix it just for IE...Here it is.
Initial Script
<script type='text/javascript'>
function getPageHeight(){
if(window.innerHeight){
_output=window.innerHeight;
}else{
_output=document.documentElement.clientHeight;
}
return _output;
}
function getPageWidth(){
if(window.innerWidth){
_output=window.innerWidth;
}else{
_output=document.documentElement.clientWidth;
}
return _output;
}
</script>
Resize call
<script type='text/javascript'>
document.getElementById('leftcol').style.height=getPageHeight()-125-48+'px';
document.getElementById('maincol').style.height=getPageHeight()-126-48+'px';
document.getElementById('maincol').style.width=getPageWidth()-152+'px';
document.getElementById('speakmain').style.height=getPageHeight()-148-32+'px';
</script>