are you talking about a script that display the page's last modified date that works based on server-side technology? like PHP or ASP.
Or
are you looking for a client side script that will do the same thing without getting email address from the user.
I wonder what would be the reason for the user who will register just to know when your site updated?
Code:
<script language="JavaScript">
function date_find(date)
{
var d = date.getDate();
var m = date.getMonth() + 1;
var y = date.getYear();
var mmm =
( 1==m)?'Jan':( 2==m)?'Feb':(3==m)?'Mar':
( 4==m)?'Apr':( 5==m)?'May':(6==m)?'Jun':
( 7==m)?'Jul':( 8==m)?'Aug':(9==m)?'Sep':
(10==m)?'Oct':(11==m)?'Nov':'Dec';
return "" +
(d<10?"0"+d:d) + "-" +
mmm + "-" +
(y<10?"0"+y:y);
}
function date_lastmodified()
{
var lmd = document.lastModified;
var s = "Unknown";
var d1;
// check if we have a valid date
// before proceeding
if(0 != (d1=Date.parse(lmd)))
{
s = "" + date_find(new Date(d1));
}
return s;
}
document.write("This page was updated on " + date_lastmodified() );
// -->
</script>
This script will do the job on the client-side
Bookmarks