Adobe Dreamweaver Forums



Last 10 THreads :         Burn to a CD (Last Post : vodesjardins - Replies : 3 - Views : 4 )           »          Format numbers with leading zeros (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          Event listener (Last Post : NedWebs - Replies : 3 - Views : 4 )           »          mouseover slide menu! ... help! (Last Post : openspark - Replies : 1 - Views : 2 )           »          Trouble with SQL Query Tool on Leopard (Last Post : Daverms - Replies : 8 - Views : 9 )           »          Re: Cannot paste text from MS Publisher into Dreamweaver (Last Post : Tim G - Replies : 8 - Views : 9 )           »          action script for button (Last Post : NedWebs - Replies : 5 - Views : 10 )           »          403 error from my domain? (Last Post : Ken Ford - *ACE* - Replies : 1 - Views : 4 )           »          Adding database RDS Login Dreamweaver 8 Coldfusion 8 (Last Post : ClubbyJMC2008 - Replies : 4 - Views : 5 )           »          Looping from end of clip to middle of clip (Last Post : Gibbah - Replies : 1 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Contribute
 
Tags: , ,



Reply
  #1 (permalink)  
Old 08-13-2008, 05:10 PM
Confused User
 
Posts: n/a
Diggs:
Default Inserting an automatic date?

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?



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-13-2008, 09:28 PM
ThinkInk
 
Posts: n/a
Diggs:
Default Re: Inserting an automatic date?

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.

Reply With Quote
  #3 (permalink)  
Old 09-08-2008, 05:54 PM
Confused User
 
Posts: n/a
Diggs:
Default Re: Inserting an automatic date?

ThinkInk:

Thank you for this, but I have another question: how do I insert the javascript code into the other page for the autodate?
Reply With Quote


  #4 (permalink)  
Old 09-09-2008, 07:42 AM
ThinkInk
 
Posts: n/a
Diggs:
Default Re: Inserting an automatic date?

When you are using CS3 you can use the >Insert>HTML snippet option. In older versions you can use the >File>Actions>Edit page source in external application.
Reply With Quote
  #5 (permalink)  
Old 09-09-2008, 03:34 PM
Confused User
 
Posts: n/a
Diggs:
Default Re: Inserting an automatic date?

ThinkInk: THANK YOU SOOOO MUCH! You are like my savior here!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:37 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk