Jacka
06-13-2007, 09:40 PM
I've made a script to resize certain elements of my page according to how much of the window is available.
It uses absolute positioning.
function resize(){
var height=document.documentElement.clientHeight;
var width=document.documentElement.clientWidth;
document.getElementById('spare').style.height=(height-32)+"px";
document.getElementById('spare').style.width=(width-767)+"px";
}
I'm getting this error.
document.getElementById("spare") has no properties
.../script.js
Line 26
The element is an iframe, and if needed I can provide more code, but in the meantime, I'm getting some kip!
Thanks for reading this thread, farewell.
It uses absolute positioning.
function resize(){
var height=document.documentElement.clientHeight;
var width=document.documentElement.clientWidth;
document.getElementById('spare').style.height=(height-32)+"px";
document.getElementById('spare').style.width=(width-767)+"px";
}
I'm getting this error.
document.getElementById("spare") has no properties
.../script.js
Line 26
The element is an iframe, and if needed I can provide more code, but in the meantime, I'm getting some kip!
Thanks for reading this thread, farewell.