Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Feb 2010
    Posts
    16

    Default "Last Updated" function

    Could someone please advise how to insert a "Web Page Last Updated" function in Web Designer Pro 6.
    Thanks, Vern.

  2. #2

    Default Re: "Last Updated" function

    Welcome to TG Forums,

    If you have a script, use a placeholer.

    If not, use the text tool, type the date then change the date manually each time you update the site

  3. #3
    Join Date
    Feb 2010
    Posts
    16

    Default Re: "Last Updated" function

    Thanks Sledger for the quick reply. My problem is I need a script, because at my age I forget to update small things like the date at the bottom of the page.
    Regards, Vern.

  4. #4
    Join Date
    May 2009
    Location
    Germany
    Posts
    145

    Default Re: "Last Updated" function

    Hi,
    create a placeholder and copy the following code to the "replace with HTML" field:

    <SCRIPT LANGUAGE="Javascript">
    <!--
    var date = new Date(document.lastModified);
    document.write("<I>Last Updated:"+(date.getMonth()+1)+ "/"
    + date.getDate()+ "/" + date.getYear() + "</I>");
    // -->
    </SCRIPT>

  5. #5
    Join Date
    Feb 2010
    Posts
    16

    Default Re: "Last Updated" function

    Many thanks Sebastian, it's working well. You have no idea how many hours I have spent trying to solve this problem before asking for help. I'll know better in the future.
    Thanks again, Vern.

  6. #6

    Default Re: "Last Updated" function

    Here's another which adds the time:

    DEMO

    Also set the font color/size/face
    Click image for larger version. 

Name:	post#6.jpg 
Views:	125 
Size:	21.1 KB 
ID:	74468
    Last edited by steve.ledger; 17 July 2010 at 12:23 PM.

  7. #7

    Default Re: "Last Updated" function

    Quote Originally Posted by Sebastian View Post
    Hi,
    create a placeholder and copy the following code to the "replace with HTML" field:
    hi sabastian i would like to add this code to my site but cant work out how to change the colour of it from black to white. could you please tell me how this is done, thank you
    http://naturalessex.co.uk/

  8. #8

    Default Re: "Last Updated" function

    Dreamer,
    Wrap it in a font tag like this:

    <font color=WHITE>
    <SCRIPT LANGUAGE="Javascript">
    <!--
    var date = new Date(document.lastModified);
    document.write("<I>Last Updated:"+(date.getMonth()+1)+ "/"
    + date.getDate()+ "/" + date.getYear() + "</I>");
    // -->
    </SCRIPT></font>

  9. #9

    Default Re: "Last Updated" function

    thank you sledger, im off to sort it nice one
    http://naturalessex.co.uk/

  10. #10
    Join Date
    Oct 2007
    Location
    Richmond, MI USA
    Posts
    1,221

    Default Re: "Last Updated" function

    sledger,
    Could you also show how to change the font and font size using this script? I can get the color to change but not the font.
    Thanks!

    Jim

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •