Bonjour,

Comment interpreter ce code?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
var ratio = 5; // ratio taille thumbnail / taille image
var thumb_x = 100; // largeur thumbnail
var thumb_y = 119; // hauteur thumbnail
image_x = (xcoord*ratio)-Math.round(thumb_x/2);
image_y = (ycoord*ratio)-Math.round(thumb_y/2);
 
big_image.style.background = "black url(img_big.jpg) no-repeat scroll -"+image_x+"px -"+image_y+"px";
Que fait la ligne qui modifie le background avec les valeurs image_x et image_y?