posted
Fugu and all you other webmasters out there.
Where can I find a bit of javascript (or whatever it takes) that will update the date on my page daily?
Currently, my departmental web page (this is in-house, our company) at the top I have:
quote:Current Network Status: Monday, April 12, 2004
Each day I have to manually updated that blasted day/date line (to Tuesday, April 13, 2004, etc).
I'm sure there has got to be some script that could automatically update it, but I don't know where to find said script. I know HTML, but don't know javascript.
posted
Just a question: Where does it get the date from? Will someone accessing the site in Australia see a different date than someone in the US?
Posts: 2149 | Registered: Aug 2000
| IP: Logged |
posted
I believe fugu's sample is client-side, so the date comes from the browser machine. Which means it's tomorrow in Australia.
The other way to handle it would be a PHP or other script (ASP, etc.) to insert the date server-side. I can provide a sample if I know what the platform is.
posted
Yes, I put it in there now, and it looks great. I didn't necessarily want the time, but now that I have it, I guess I don't mind. Usually I only note the time on the page when we have a network issue -- to let them know what time the last network status update was.