Trying to implement a javascript image clock which sits in an included file to be used throughout my website.
Have mapped all the images with virtual paths, and it works fine when I test the included file on it's own.
However, when I browse the file as an include in another page, it doesn't work. The images are being called correctly (the default starting images are displaying) and I'm not getting any error messages. But the clock fails to increment.
I have a hunch that it might be something to do with the body onload syntax because it only doesn't work as an included page and also just doesn't seem to start executing.
I will be very grateful to anyone who has an idea of what's wrong.
janinja : )
Have mapped all the images with virtual paths, and it works fine when I test the included file on it's own.
However, when I browse the file as an include in another page, it doesn't work. The images are being called correctly (the default starting images are displaying) and I'm not getting any error messages. But the clock fails to increment.
I have a hunch that it might be something to do with the body onload syntax because it only doesn't work as an included page and also just doesn't seem to start executing.
I will be very grateful to anyone who has an idea of what's wrong.
janinja : )