Hi! this script works in FF/Safari/IE6 but breaks in IE7. When the page first loads the function work as intended, and adjusts the height of the given element, but when you resize the window IE7 throws an error "Invalid argument" adn the scrtipt stops.
I use this script to adjust the page layout. both functions are called as: $("document").ready(ypos); $("document").ready(wresizeListener); here is the code: function ypos(){ var content_height = $('#content').height(); var secnavi_height = 40; var simImage_height = -36; // height compesation for the padding in CSS var compensation = 3.4 // height compesation for the padding in CSS var scrollHeight = content_height - (simImage_height + (compensation * secnavi_height)); $('#scrollThisNow').height(scrollHeight+"px"); var hassClass = $('#scrollThisNow').attr("class"); // IE7 throw the error on this line (Invalid argument, Char: 2) if(hassClass == undefined) { $('#scrollThisNow').addClass("scrollMe"); } SetRsBrowser(content_height); } function wresizeListener(){ $(window).bind("resize", function(){ ypos(); }); }