|
Try moving the JavaScript to just before the </body> tag where most JavaScript belongs.
Moving the script will fix your problem because with the script at the top it tries to run before the HTML has loaded when it is already cached by the browser.
You should also fix the setInterval call - it expects a function not a string in the first parameter.
window.setInterval(cycle1,3000);
|