Yes, what Patty wrote is just a coumter.
My thoughts are:
Find the current day, then
1. Load a file according to that day
2. Look up an array of messages and display the one for that day
Another possibility is to have a database of messages and retrieve one of
these according to the day, but that may be getting too complicated.
I think option 2. above would work quite well.
You would have an array such as:
var message = new Array(
"20061017" , "message for 17 October 2006" ,
"20061018" , "message for 18 October 2006" ,
"20061019" , "message for 19 October 2006" ,
"20061020" , "message for 20 October 2006" ,
"20061021" , "message for 21 October 2006"
When the date is returned, say "20061018", the array is searched until this
value is found and the next element in the array is displayed.
With this set up, you can delete the old values and just keep adding new
ones at the end (provided you keep the format correct). But you can also
keep them all if you want.
If you are interested in this idea, I will try to write the code and post it
in a day or so.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://www.yqcomputer.com/