alexjewell
08-01-2010, 03:01 PM
For some reason, the following script is not working in IE8. You can view the context at http://www.alexjewell.com/clients/num12/index.php. Click on the Blog page and you'll notice how, since there's not enough content, everything ends before reaching the end of the viewport. The script does what it's supposed to in other browsers (Firefox and Chrome, specifically), and the content is stretched to at least the bottom of the viewport if the content doesn't already flow that far.
What isn't working in IE?
function rockBody(){
var buddyH = document.getElementById('content');
var buddy = buddyH.offsetHeight+200;
var torso = window.innerHeight;
if(buddy <= torso){
buddyH.style.height = torso-325+"px";}
}
window.onload=rockBody;
Thanks for any help.
What isn't working in IE?
function rockBody(){
var buddyH = document.getElementById('content');
var buddy = buddyH.offsetHeight+200;
var torso = window.innerHeight;
if(buddy <= torso){
buddyH.style.height = torso-325+"px";}
}
window.onload=rockBody;
Thanks for any help.