var save_col ; var id_update ; var id_update2 ; function update_col_maj() { // variable pour la colonne document.getElementById('colonne_gauche').style.height = '' ; document.getElementById('colonne_droite').style.height = '' ; save_col = "" ; update_col(); } function update_col() { var id_update = "" ; if (document.getElementById('colonne_gauche').offsetHeight > document.getElementById('colonne_droite').offsetHeight) { id_update = "colonne_gauche" ; id_update2 = "colonne_droite" ; } else { id_update = "colonne_droite" ; id_update2 = "colonne_gauche" ; } if (document.getElementById(id_update).offsetHeight != save_col) { document.getElementById(id_update2).style.height = document.getElementById(id_update).offsetHeight ; save_col = document.getElementById(id_update).offsetHeight ; } } update_col(); setInterval("update_col()",100);