It seems that this happens only on IE as it raises the onResize event multiple times until the user stops resizing the window. You can try introducing a delay in calling the resizing function, like the example below:
<!--
var resizeDelay;
function resize()
{
<code>//Your resizing calculation</code>
document.body.style.backgroundColor=(document.body.style.backgroundColor=="black")?"white":"black";
}
onresize=function()
{
<code>//Call this method during onresize</code>
clearTimeout(resizeDelay);
resizeDelay=setTimeout("resize()", 200);
}
//-->
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross Edbert Sydney, Australia