Results 1 to 4 of 4

Thread: Auto update of year in my footer

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,120
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default Auto update of year in my footer

    Morning,
    Here is an example page, https://www.theremotedoctor.co.uk/ho...rollto=content

    In the footer you can currently see Copyright 2010-2018 is there some code we can add to my page / site etc that would automatically change the 2018 part of the date to the current year.
    Ive only just remembered this as need to manually change it each time.

    Code:
    <div id="colophon" class="wrapper clearfix">Copyright &copy; 2010&ndash; 2018</div>

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,565
    Thanks
    1
    Thanked 246 Times in 241 Posts

    Default

    Hi there theremotedr,


    "There is no reason at all for an individual to update the copyright year, because
    in the U.S. and Europe the life of copyright is the life of the author plus 70 years
    (50 years in some other countries like Canada and Australia). Extending the date
    does not extend the copyright."


    Source:-

    Do copyright dates need to be updated?

    As for you problem, I checked a few of your pages and noticed that they already
    have updating code installed.

    Code:
    
    <div id="colophon" class="wrapper clearfix">COPYRIGHT &copy; 2010 - <script type="text/javascript">
      var today = new Date()
      var year = today.getFullYear()
      document.write(year)
    </script> THE REMOTE DOCTOR</div> 

    coothead
    ~ the original bald headed old fart ~

  3. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,120
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Thanks.

    I had found why i did not work & correct it

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,565
    Thanks
    1
    Thanked 246 Times in 241 Posts

    Default


    No problem you're very welcome.
    ~ the original bald headed old fart ~

Similar Threads

  1. Auto Update?
    By Deadweight in forum JavaScript
    Replies: 9
    Last Post: 09-29-2013, 06:54 AM
  2. Year-Make-Model script for auto parts website
    By jagsweb in forum Looking for such a script or service
    Replies: 1
    Last Post: 02-11-2011, 12:13 AM
  3. CSS for a auto stretching footer?
    By pxlcreations in forum CSS
    Replies: 5
    Last Post: 12-11-2010, 11:39 PM
  4. Auto Copyright year script
    By dak in forum JavaScript
    Replies: 2
    Last Post: 10-05-2006, 08:05 PM
  5. Auto Update Table
    By Viperalus in forum JavaScript
    Replies: 0
    Last Post: 01-11-2006, 08:02 PM

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
  •