Displaying
the date within your web page is a good way to spice up your web site and
give it a more professional appearance. The following JavaScript code will
display the date on your web in the following format:
Place this code
between your <HEAD> and </HEAD> tags:
<SCRIPT
language=Javascript>
<!-- Script courtesy of
http://www.web-source.net - Your Guide to Professional Web Site Design and
Development
var today_date= new Date()
var month=today_date.getMonth()
var today=today_date.getDate()
var year=today_date.getFullYear()
var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
//
-->
</SCRIPT> |
Place this code where you'd like the
date to appear:
<SCRIPT
language=Javascript>
<!-- Script courtesy of
Web-Source.net - Your Guide to Professional Web Site Design and
Development
document.write(months[month]+" "+today+", "+year)
//
-->
</SCRIPT> |
You can change
the font style and color by enclosing the above JavaScript code with your
font tags.
|
|