bonjour j'ai une petite galerie photo simple en javascript et j'aimerai pouvoir la mettre en relation avec un fichier xml pour plus de confort dans la maintenance mon probleme est que je ne sais pas comment m'y prendre est ce que quelqu'un pourrait me donner quelques conseil je vous laisse mon code js de la galerie sachant le fichier xml lui est deja pensé donc je sais quelle information je veux en ressortir
var myPix = new Array("img1.gif,img2.gif,img3.gif,img4.gif,img5.gif,");
var thisPic = 0;
var imgCt = myPix.length - 1;
function chgSlide(direction) {
if (document.images) {
thisPic = thisPic + direction
if (thisPic > imgCt) {
thisPic = 0
}
if (thisPic < 0) {
thisPic = imgCt
}
document.myPicture.src = myPix[thisPic]
}
}