View Full Version : Need some help with a Date/Clock script

10-20-2005, 05:46 AM
I'm working on a site that pulls an external .js file that is named by the year (example 2005.js, 2006.js, etc). Whatever the current year is, is what file it pulls. I have the date displayed on my site, but it is not updated, per se. Once the page is loaded, that's it. It doesn't update again, until you refresh the page.

I would like to have the script refresh automatically. The external .js file contains a function that is strictly based on what day it is. If someone is looking at my site, and it rolls into the next day, I would like the script to automatically update. I tried modifying a script that I found on Dynamic Drive, but I couldn't get it working correctly.

Can someone please help me. I have attached my index page and external .js file for reference (also see link in signature for Current Site). Any help would be greatly appreciated.