Date

  • Thread starter Mike & Mary Normile
  • Start date
M

Mike & Mary Normile

I would like to put the date that changes daily as the page is looked at -
something that I can adjust for font, size and text color as I see fit - is
there something in FrontPage that will do this or do I need to learn
JavaScript to tackle this task!
Thanks in advance!
Mike
 
T

Tom J

Mike & Mary Normile said:
I would like to put the date that changes daily as the page is looked at -
something that I can adjust for font, size and text color as I see fit - is
there something in FrontPage that will do this or do I need to learn
JavaScript to tackle this task!
Thanks in advance!
Mike

The following will do what you want, but you will have to go to HTML and
insert this where you want it to go. If you want it to center the page just
add <center> before the 1st line and </center> after the last line.

--------------------------------------------------
<FONT SIZE="3" FACE="arial,helvetica">
<SCRIPT LANGUAGE="JavaScript1.2">

<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000) // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");
// End --></font>
</SCRIPT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top