Hello I can’t figure out it’s not inserting the image into the image tag. Seems like everything is there to me. Its just supposed to throw the image, into the image tag. I really need to do it this way so that I only need to add the image addresses to the arry only to same me time. Please help!! Thank you very much for your help.
var arr=;
arr[0] = [“http://l.yimg.com/g/images/watch-the-world_galleries.jpg”];
arr[1] = [“”];
arr[2] = [“”];
arr[3] = [“”];
arr[4] = [“http://l.yimg.com/g/images/watch-the-world_commons.jpg”];
arr[5] = [“”];
arr[6] = [“”];
arr[7] = [“”];
arr[8] = [“”];
arr[9] = [“”];
arr[10] = [“”];
arr[11] = [“”];
arr[12] = [“”];
arr[13] = [“”];
arr[14] = [“”];
arr[15] = [“”];
arr[16] = [“”];
arr[17] = [“”];
arr[18] = [“”];
arr[19] = [“”];
arr[20] = [“”];
arr[21] = [“”];
arr[22] = [“”];
arr[23] = [“”];
arr[24] = [“”];
arr[25] = [“”];
arr[26] = [“”];
arr[27] = [“”];
arr[28] = [“”];
arr[29] = [“”];
arr[30] = [“”];
arr[31] = [“”];
arr[32] = [“”];
arr[33] = [“”];
arr[34] = [“”];
arr[35] = [“”];
arr[36] = [“”];
arr[37] = [“”];
arr[38] = [“”];
arr[39] = [“”];
arr[40] = [“”];
arr[41] = [“”];
arr[42] = [“”];
arr[43] = [“”];
arr[44] = [“”];
arr[45] = [“”];
arr[46] = [“”];
arr[47] = [“”];
arr[48] = [“”];
arr[49] = [“”];
arr[50] = [“”];
arr[51] = [“”];
arr[52] = [“”];
arr[53] = [“”];
arr[54] = [“”];
arr[55] = [“”];
arr[56] = [“”];
arr[57] = [“”];
arr[58] = [“”];
arr[59] = [“”];
function decimg(){
document.getElementById(“arr”).innerHTML = “<img style=‘margin-left: 10px;margin-top:10px’ title=‘Image’ border=‘0’ src=”‘+arr[new Date().getSeconds()]+’”>”;
setTimeout(‘decimg()’,1001);}
This goes in the body of a page
<div id=“arr”>
<script type=“text/javascript”>decimg()</script>
</div>