![]() |
![]() |
||||||
|
|||||||
| Tags: automatic, date, inserting |
![]() |
|
|||
|
I notice that when I want to insert a date, it only resets once the page has
been updated. But I found a few pages on my site that has an automatic date that resets on its own, and when I tried to edit that page, all I saw was a little yellow box that looked like a "scroll" was in it. Here's an example of the page that I need to update to get a new date: http://naswnyc.org/ Here's the page that does it on its own: http://naswnyc.org/archives/executive.htm can someone please help? |
| Sponsored Links |
|
|||
|
Check your source code and you will see the difference:
--- http://naswnyc.org/ This page is using this code: <!-- #BeginDate format:fcAm1 -->Wednesday, August 13, 2008<!-- #EndDate --> This is created by Contribute and will update once you edit and publish the updated page. --- http://naswnyc.org/archives/executive.htm This page is using this code: <script language="javascript"> //--------------- LOCALIZEABLE GLOBALS --------------- var d=new Date(); var weekday=new Array("sunday","monday","tuesday","wednesday","thu rsday","friday","saturday"); var monthname=new Array("january","february","march","april","jay"," june","july","august","septemb er","october","november","december"); //Ensure correct for language. English is "monday, january 1 - 2004" var TODAY = weekday[d.getDay()] + ", " + monthname[d.getMonth()] + " " + d.getDate() + " - " + d.getFullYear(); //--------------- END LOCALIZEABLE --------------- </script> and: <script language="javascript"> document.write(TODAY); </script> This is a javascript that writes the current date to the screen. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise