Automatic Date Generator

C

carmen

Nancy:

Insert the following code between your <BODY> tags:


<SCRIPT LANGUAGE="javascript">
//This script posts the date + time you entered the page
RightNow = new Date();

document.write("<FONT COLOR='GREEN'>Today's date is " +
(RightNow.getMonth()+1+"/")+ RightNow.getDate() + "/" +
RightNow.getFullYear() + ".You entered this Web Page at
exactly: " + RightNow.getHours() + ":" +
RightNow.getMinutes() + " and " + RightNow.getSeconds()
+ " seconds.")
</SCRIPT>
 
Top