J'ai un problème sur deux lignes (les deux, pas seulement une seule) avec IE (mais sous Firefox et Opéra ça marche !) :
Code : Tout sélectionner
objet.css({position:'absolute',left: (largeur/2 - contact_largeur/2) + 'px',top: (hauteur/2 - contact_hauteur/2) + 'px','z-index':'1000'});
$('#fond').css({position:'absolute',top:'0px',left:'0px',width: largeur + 'px',height: hauteur2 + 'px',backgroundColor:'#000000'}); Pour l'environnement, voici la fonction :
Code : Tout sélectionner
function reactualiser_fenetre (objet) {
var largeur = $(window).width() + window.scrollX*2;
var hauteur = $(window).height() + window.scrollY*2;
var contact_largeur = objet.width();
var contact_hauteur = objet.height();
objet.css({position:'absolute',left: (largeur/2 - contact_largeur/2) + 'px',top: (hauteur/2 - contact_hauteur/2) + 'px','z-index':'1000'});
var hauteur2 = $('body').height();
$('#fond').css({position:'absolute',top:'0px',left:'0px',width: largeur + 'px',height: hauteur2 + 'px',backgroundColor:'#000000'});
return objet;
}