Javascript setTimeout/setInterval
问题 Trying to make a little slideshow for a test webpage. I'm confused as to why this code isn't working (I'm not very experienced with javascript, I mostly deal in Java, Javascript is rather mind blowingly frustrating). Also I'd like to add it does begin to run it'll switch to the 3rd picture after a few seconds then it stops never again switching. var backgroundElement = document.getElementById("innerContent"); var minibarImage1 = document.getElementById("pic1"); var minibarImage2 = document