Hi all,

I have the following code which I need some help with.

Code:
<script>
var images = [
	"",  /* PICTURE 0 */
	"",  /* PICTURE 1 */
	"",  /* PICTURE 2 */
	"",  /* PICTURE 3 */
	
 ];
</script>
<body>
<div id="chooseframe">

</div>
<script>
var holding = document.getElementById("chooseframe");
var imageholders = [];
for(var i=0;i==images.length;i++)
{
imageholders.push("number"+i);
imageholders[i] = document.createElement("IMG");
imageholders[i].src=images[i];
holding.appendChild(imageholders[i]);
}

</script>
</body>
This is meant to be a code snippet in which the images inside the "images" variable are displayed in a list (to control which image is being displayed on a slideshow)

The problem lies with the fact that I have never used "create node" DOM before and therefore don't know whats wrong here. I have a feeling its that the loop is trying to put the new image nodes in the same place (not 1 then another then another like a list). The problem with this line of thought, however, is that I then don't know how to do this in another way if I am correct.

Any and all help with be great.

Thanks all

ps: dumb question, how do you edit a post on this site? I can't for the life of me find the big "edit" button.