With jQuery, i change the src of an image on click
$("#thumb li img").click(function() {
var newlinkimage = $(this).attr("src");
newlinkimage = newlinkimage.substring(14,17);
$("#avant img").attr("src", 'retouche-hr' + newlinkimage + '-a.jpg');
$("#apres img").attr("src", 'retouche-hr' +newlinkimage + '-b.jpg');
The problem is, that the NEW image width is different that the old. HOW do i get the NATIVE width of the new image (like the little arrow that get that in dreamweaver