Hello, I have this JS, that is supposed to display one image, and every 2 seconds change too another image.
The images are uploaded to my webserver however this JS doesn’t seem to be working at all…Any help would be great..Its just supposed to show <Conference1.jpg> the every two second change to <Conference2.jpg>
[CODE]
<script type=”text/javascript”> image1=”http://www.mysite.org/images/conference1.jpg”; image2=”http://www.mysite.org/images/conference2.jpg”; function swap() { source = (test.getAttribute(“src”) != image1) ? image1 : image2; test.setAttribute(“src”, source); setTimeout(“swap()”, 2000); } window.onload = function() { test = document.getElementById(“test”); swap(); }</script> <img id=”test” /></div>