Jump to content
xisto Community
Sign in to follow this  
hulunes

Show The Last Update Time Automatically very helpful to your website

Recommended Posts

After we ourselves upload webpage, will often bring in constant renewal in and add the new content , and how could let net friend to browse through webpage know working hard getting newer one's own? Usually we will list the last date that this webpage will be upgraded in one mao of the webpage, but if this job is come to do by hand, troublesome and easy to forget. How to solve this problem? Having seen this small skill, you will say , it was so simple originally definitely. All right, now we do it. The source code pastes the frame :

 

<script language="JavaScript">

<!--hide script from old browsers

document.write("This last update date of page : " + document.lastModified + "")

// end hiding -->

</script>

 

 

This last update date of page: 09/16/2004 23:42:55 So long as we duplicate JavaScript code in " frame that the source code paste " to the place which you want to show the last update time. If we duplicate the code in the form of the following, each time when html file of this page is altered, demonstrate update time automatically in the form , u.i.: This last update date of page: 07/10/2000 14:26:37 It hit code document.write () meaning write out content that bracket establish in page, we adopt " document.lastModified " get file last update time , and it show come out now. In a flexible way use "document.write () "sentence, we still can output other contents in the page , for example present time , date , user's information ,etc.

 

Everybody can go to try !Good luck! :(

Share this post


Link to post
Share on other sites
:) That is cool !!! Do you know how to do the live Time and Date thing ?? using PHP ??? Because I need that.....As i said using PHP NOT MySql.....That drives me bonkers

Share this post


Link to post
Share on other sites

Umm...MySQL is a database tool...not a coding language...

Share this post


Link to post
Share on other sites

I had seen it on websites but didnt know how to get it, i suppose i shuold of just looked at the source code od the page, but its here anyway.Thanx...!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.