I am attempting to use the following code to display the same image 19 times and then center all of those images horizontally on the page as a whole. However, I have been unsuccessful in getting it to work.
var totImg = "large.png";
function prettyHeader(){
function totoroImg(){
var img = document.createElement("img");
img.style.width = "30px";
img.style.height = "30px";
img.src=totImg;
return img;
}
for(var totPrint=0; totPrint<20; totPrint++){
document.body.appendChild(totoroImg());
}
}
prettyHeader();