1<div id="list"><img id="item" src = "picture.jpg"></div>
2
3<script type="text/javascript">
4 function cloneItem() {
5 var item = document.getElementById("item");
6 var list = document.getElementById("list");
7 var clonedItem = item.cloneNode(true);
8 list.appendChild(clonedItem);
9 }
10
11 for(var i = 0; i < 5; i++) {
12 cloneItem();
13 }
14</script>