I'm working on my cameras website. Here's what it looks like :

How it works :
- All the cameras, photos, texts are stored in a JSON array.
- The big image ('image0') comes with a description text (in a div named 'texte_image0').
- Everytime one clicks on a thumbnail (image1 to image10), the thumbnail image replaces the big image (image0) and the description text. This text is stored in the 'title' field of every thumbnail image.
Here is the code for image1 :
image1 = "<img class=\"petite\" id=\"image001\" onclick=\"changeImage(image001);\" src=\"photos/" + data.APPAREILS[numero].IMAGE1 + "\" alt=\"" + data.APPAREILS[numero].TEXTE_IMAGE1 + "\" title=\"" + data.APPAREILS[numero].TEXTE_IMAGE1 + "\">";
$('#image1').append(image1);
Every click on the thumbnail calls the 'change_image' function :
function changeImage(numero_image) { //Permet d'afficher l'image cliquée dans le grand cadre, ainsi que le texte associé.
$('#texte_image0').html("");
image000.src = numero_image.src;
$('#texte_image0').append(numero_image.title);
}
As you can read, I replace the image0 'src' field by the clicked thumbnail 'src' field and use its 'title' field to change the description text in the 'texte_image0' div.
This code works fine in Mozilla Firefox but it doesn't in Google Chrome/Chromium. I guess these replacements are not allowed in Chrome/Chromium.
How can I fix it ?
Thanks !