The following function makes several div elements the same height:
Code:
//function adjust()
//{
// hgtc=document.getElementById('content').offsetHeight;
// hgtl=document.getElementById('left').offsetHeight;
// document.getElementById('content').style.height=(hgtc<hgtl)? hgtl+"px" : hgtc+"px";
// document.getElementById('left').style.height=(hgtc>hgtl)? hgtc+"px" : hgtl+"px";
// document.getElementById('right').style.height=(hgtc>hgtl)? hgtc+"px" : hgtl+"px";
//}
//window.onload=adjust;
//window.onresize=adjust;
The divs are three columns next to each other layed out with CSS. It works in Firefox and Konqueror, but IE hangs. What should I change??