Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Show The Last Update Time Automatically, very helpful to your website
hulunes
post 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! biggrin.gif
Go to the top of the page
 
+Quote Post
ralph
post 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
Go to the top of the page
 
+Quote Post
mobileunlocking
post 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
Go to the top of the page
 
+Quote Post
Becca
post Oct 9 2004, 07:20 PM
Post #4


Princess
***********

Group: Members
Posts: 1,233
Joined: 9-October 04
From: England
Member No.: 1,563



huh.gif 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
Go to the top of the page
 
+Quote Post
biscuitrat
post 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...
Go to the top of the page
 
+Quote Post
melkonianarg
post 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...!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Tips on creating a good website!(8)
  2. Optimizing Website?(10)
  3. I Finally Found A Simple Way To Do A Blendtrans(1)
  4. Ftp Website(0)
  5. Update Navigation Links?(2)
  6. Website Copy Protection(15)
  7. Html Templates(3)
  8. Making A Refresh Link On Your Website.(16)
  9. How Do I Mirror A Website?(4)
  10. Website Deployment Problems(3)
  11. Background Image Picture On A Website(3)
  12. How To Make Cms For My Dynamic Website?(3)
  13. Help With Website Layout Correction For All Browsers(4)
  14. Making This Website Automatically Scale For Browsers(1)
  15. Website Problems Please Help(6)
  1. Website Drop Shadow Effect Help(7)
  2. Build A Website(12)


 



- Lo-Fi Version Time is now: 5th September 2008 - 12:35 PM