change a month name automatically

V

Valeria

Dear experts,
I would like to change a month name on my webpage automatically. If
possible it should change on the 15th of the current month to display the
name of last month (like on the 15th of January it should display "December"
and this until the 15th of February, when it should change to "January")

Is this possible?
Many thanks in advance!
Best regards,

Valeria
 
J

Jens Peter Karlsen[FP MVP]

You can do it with Javascript using Date
You would get the current day and current month and depending on this
you can then decide what month name to write to the page. Here is a link
to a script that demonstrates how to do it.
http://javascript.internet.com/messages/date.html

needs to be adapted to your purpose.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
V

Valeria

Hi,
thank you very much. I am not good at all with code, so I actually do not
know how to change the code to make it display the text during a certain
period of time...
the example tells me how to display a text on a certain date, but how to
make it stay until the following date?

Thanks!
Best regards,
Valeria

Jens Peter Karlsen said:
You can do it with Javascript using Date
You would get the current day and current month and depending on this
you can then decide what month name to write to the page. Here is a link
to a script that demonstrates how to do it.
http://javascript.internet.com/messages/date.html

needs to be adapted to your purpose.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Valeria [mailto:[email protected]]
Posted At: 17. januar 2005 11:09
Posted To: microsoft.public.frontpage.client
Conversation: change a month name automatically
Subject: change a month name automatically


Dear experts,
I would like to change a month name on my webpage
automatically. If possible it should change on the 15th of
the current month to display the name of last month (like on
the 15th of January it should display "December"
and this until the 15th of February, when it should change to
"January")

Is this possible?
Many thanks in advance!
Best regards,

Valeria
 
Top