Hi, I want to modify this code (xml gallery) in relation with my xml, but I don’t know how.
Someone can help me?
<pictures> <image location="acqua01.jpg" desc="" /> </pictures>
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
aaa = “Non caricato!”;
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(“public/gallery/homepage/pics.xml?null=”+random(Infinity));