Menu
Hello it would help a lot if those that know about javascript can tell me if it is ok to do this or not. it looks like if I leave the [0] off, the script works ok since that is the only thing being used by this: <img id=”img” >
document.getElementById(‘img’).src = arr[new Date().getSeconds()][0]
But I just wanted to double check in case it ruins something with someone seeing my rotating images in the world. I know sometimes things seem ok but really aren’t for some reason. Is it fine to leave the [0] totally off the end of that line? Please let me know thank you very much for your help.