|
|
|
|
![]() ![]() |
Sep 19 2004, 05:04 PM
Post
#1
|
|
|
.::UniCorN::. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 973 Joined: 19-September 04 From: Dalian CHN Member No.: 1,192 |
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! |
|
|
|
Oct 1 2004, 03:34 PM
Post
#2
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 24 Joined: 30-September 04 Member No.: 1,364 |
thnx, I can use this
|
|
|
|
Oct 1 2004, 03:37 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 233 Joined: 26-September 04 Member No.: 1,279 |
i think ill use it to.
Thx mate got any more cool codes ?? Mick |
|
|
|
Oct 9 2004, 07:20 PM
Post
#4
|
|
|
Princess ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,233 Joined: 9-October 04 From: England Member No.: 1,563 |
As i said using PHP NOT MySql.....That drives me bonkers |
|
|
|
Oct 16 2004, 03:21 PM
Post
#5
|
|
|
Kween of Everything :) ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,052 Joined: 16-October 04 From: Houston, Tejas :D Member No.: 1,774 |
Umm...MySQL is a database tool...not a coding language...
|
|
|
|
Oct 20 2004, 02:39 PM
Post
#6
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 321 Joined: 3-September 04 From: South East of U.K. & Sometimes, other places... Member No.: 1,001 |
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...! |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 5th September 2008 - 12:35 PM |