Comment ajouter de la hauteur à wrapper avec jquery?

J'ai besoin d'ajouter des css de la hauteur à chaque page dynamique avec jquery.

Jusqu'à présent, j'ai le code suivant, mais il ne pas ajouter de la hauteur à #wrapper.

Quelqu'un peut m'aider s'il vous plaît?

Merci à l'avance.

function getPageSizeWithScroll(){
if (window.innerHeight && window.scrollMaxY) {//Firefox
    yWithScroll = window.innerHeight + window.scrollMaxY;
    xWithScroll = window.innerWidth + window.scrollMaxX;
} else if (document.body.scrollHeight > document.body.offsetHeight){ //all but Explorer Mac
    yWithScroll = document.body.scrollHeight;
    xWithScroll = document.body.scrollWidth;
} else { //works in Explorer 6 Strict, Mozilla (not FF) and Safari
    yWithScroll = document.body.offsetHeight;
    xWithScroll = document.body.offsetWidth;
}
arrayPageSizeWithScroll = yWithScroll;
//alert( 'The height is ' + yWithScroll + ' and the width is ' + xWithScroll );
return arrayPageSizeWithScroll;
}
var newheight = getPageSizeWithScroll() + 30;

$('#wrapper').css({'height':'newheight'});
InformationsquelleAutor shin | 2009-07-03