I’m trying to make Javascript change the style of certain DIV IDs by changing their background every few seconds. Basically, a fading header…here’s my code, and it just doesn’t change the background, at all.
How do you call a function?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your javascript is in functions and isn’t being called from anywhere. Try calling one of the functions from window.onload, or $(document).ready(function(){ }); if you’re using jQuery