# Xml photo gallery using a different image format

**URL:** <https://forum.kirupa.com/t/xml-photo-gallery-using-a-different-image-format/167056>\
**Category:** Uncategorized\
**Created:** [October 25, 2005, 2:09am UTC](https://forum.kirupa.com/t/xml-photo-gallery-using-a-different-image-format/167056 "2005-10-25T02:09:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onions](https://avatars.discourse-cdn.com/v4/letter/o/6de8d8/32.png) [@onions](https://forum.kirupa.com/u/onions)\
**Post date:** [October 25, 2005, 2:09am UTC](https://forum.kirupa.com/t/xml-photo-gallery-using-a-different-image-format/167056/1 "2005-10-25T02:09:00Z")

</div>

im using the same code for the xml photo gallery tutorial in my own photo gallery. JPGs work fine but some of my images are in GIF format, and they don’t appear. How can I make them work? any idea?

Here’s the code:

> 

function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild;  
image = ;  
thumbnails = ;  
total = xmlNode.childNodes.length;  
for (i=0; i\<total; i++) {  
image\* = xmlNode.childNodes\*.childNodes[0].firstChild.nodeValue;  
thumbnails\* = xmlNode.childNodes\*.childNodes[2].firstChild.nodeValue;  
thumbnails\_fn(i);  
}  
firstImage();  
} else {  
content = “file not loaded!”;  
}  
}  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“images.xml”);  
/////////////////////////////////////
