We all know the value of having a site that is constantly updated but, we also know that the time involved in this is astronomical.

What if, the surfer was made to think that our sites were updated the same day they visited it wouldn't that be something to help persuade them to bookmark our sites.

That is exactly what the following piece of JavaScripting will do, when a surfer enters a page on your site that page will display the current date wherever the surfer is located and, furthermore, will always be correct even if they come back a day, a week or a month from their first visit.

Place this code between your <HEAD> and </HEAD> tags.

<SCRIPT language=Javascript>
var today_date= new Date()
var month=today_date.getMonth()
var today=today_date.getDate()
var year=today_date.getYear()"

var months = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December");
</SCRIPT>

That's the first stage for this piece of JavaScripting now for the second:

Place this code where you'd like the date to appear.

<SCRIPT language=Javascript>
document.write(months[month]+" "+today+", "+year)
</script>

Once you have done so, preview your page and you should see the current date on your page.

All you need to do now is add some nice marketing text and the surfer will think your site is updated every time he visits it.

Article written by Lee.

http://www.geoscripting.com