CODE
function setheight(image,h){document.getElementById(image).style.height = h;}
function setwidth(image,w){document.getElementById(image).style.width = w;}
function setwidth(image,w){document.getElementById(image).style.width = w;}
Lorsque je les appelles en utilisant des variable php pour h et w :
CODE
<script language="javascript">
setheight("perso_id",<?php echo $h; ?>);
setwidth("perso_id",<?php echo $w; ?>);
</script>
setheight("perso_id",<?php echo $h; ?>);
setwidth("perso_id",<?php echo $w; ?>);
</script>
le code redimentionne bien mon image sous ie mais sous firefox l'image n'est pas affecté ... une id ?