<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
function init() {
var image_div = document.getElementById('thumbs');
var xmldoc = xhr.responseXML;
var images = xmldoc.getElementsByTagName("image");
var n_images = images.length
//alert("image length=" + n_images);
var htmlTags='';
for (i = 0; i < n_images; i++) {
var li = document.createElement("li");
var a1 = document.createElement("a");
a1.setAttribute("className", "thumb");
a1.setAttribute("href", "testimages/" + images[i].firstChild.nodeValue);
a1.setAttribute("title","Title #0");
var img = document.createElement("img");
img.setAttribute("src", "testimages/" + images[i].firstChild.nodeValue);
img.setAttribute("alt","Title #0");
img.setAttribute("width", "75");
img.setAttribute("height", "75");
var div1 = document.createElement("div");
div1.setAttribute("className", "caption");
var div2 = document.createElement("div");
div2.setAttribute("className", "download");
var a2 = document.createElement("a");
a2.setAttribute("href","http://farm4.static.flickr.com/3261/2538183196_8baf9a8015_b.jpg");
var div3 = document.createElement("div");
div3.setAttribute("className","image-title");
var div4 = document.createElement("div");
div4.setAttribute("className","image-desc");
a1.appendChild(img);
li.appendChild(a1);
div2.appendChild(a2);
div1.appendChild(div2);
div1.appendChild(div3);
div1.appendChild(div4);
li.appendChild(div1)
var ul = document.createElement("ul");
ul.setAttribute("className", "thumbs noscript");
ul.appendChild(li);
image_div.appendChild(ul);
}
}
</script>
</head>
<body onload="init();">
<div><a href="/admin.php">Admin</a></div>
<div id="page">
<div id="container">
<h1><a href="index.html">Gallery</a></h1>
<!-- Start Advanced Gallery Html Containers -->
<div id="gallery" class="content">
<div id="controls" class="controls"></div>
<div class="slideshow-container">
<div id="loading" class="loader"></div>
<div id="slideshow" class="slideshow"></div>
</div>
<div id="caption" class="caption-container"></div>
</div>
[b]<div id="thumbs" class="navigation">
</div>[/b]
<div style="clear: both;"></div>
</div>
</div>
</body>
</html>
|