Comment est-il possible de renvoyer la valeur de "summe"? Je vous remercie!return var de img.onload = function()
img.onload = function() {
orgWidth = this.width;
orgHeight = this.height;
factor = orgHeight/480 // 1400/480 = 2.916
calcWidth = orgWidth/factor // 1000/2.916 = 342.935
k++;
summe += calcWidth;
document.images[k].width = calcWidth;
}
alert(summe);
Retour à quoi? – Ryan