It is January, a time when you start to notice things like other people’s copyright dates in their footers (or elsewhere) on their website. Have you changed yours? If not this is a good reminder to do so, but I’ll show you something better.
This will be the last year you’ll ever change the copyright dates on your website. This little code snippet will automatically update itself to the latest year every year, so your copyright date is always current.
1 2 3 4 | <script type="text/javascript"> var d = new Date() document.write(d.getFullYear()) </script> |
Technorati Tags: code, HTML, scripts, javascript, technology
Arika January 17, 2008
Cool Beans! Thanks Lynette!
LaTara Ham-Ying January 17, 2008
Thanks Lynette!
Carrie Lauth January 17, 2008
What would we do without you Lynette?
Lynette January 17, 2008
Hope it helps ladies. One less thing for us to do.
@Carrie – uhm… lost? LOL just kidding. You’ll get on just fine.
Shannon Smith January 17, 2008
Great help! I have a question about copyrights on the web site. I’ve noticed that some people just have the current year, and some people have the starting year through the current year. So, instead of just Copyright 2008, it will say Copyright 2001-2008. Is there a reason or rule or just a preference as to which way to do it?
Daniel Mcgonagle January 18, 2008
Thanks for the heads up! Really great post.
Lynette January 18, 2008
Thanks Daniel
Shannon – I don’t know for sure. I have heard that the date or year is usually the first year of publication but on a website, especially a blog that’s dynamic, publication could change every day. And so I put from the date my sites are launched to the current.
Of course – that is just something I heard over the grapevine. I am definitely not a lawyer and this comment shall not be taken as legal advise.
Emilie January 18, 2008
Great tip!
Anna Hodges January 18, 2008
Hi Lynette,
You know, I don’t even have a copyright date on either of my sites. Where would I enter the code? At the bottom? Does it need to be on every page?
Sorry, I feel really dumb about this. I built my sites myself, and am learning as I go.
Thanks,
Anna
Martha Matthews January 18, 2008
Sweet! Works beautifully. You’re the best, Lynette.
M
Regina January 18, 2008
oooh-weeee! Loving it! Thanks so much Lynette!
Thomas Mullooly January 18, 2008
Lynette,
You….ROCK, that is such a great tip.
Doug Lietz January 19, 2008
Thanks Lynette… handy script!
However, I ran into a little issue when I tried to cut and paste the script from this page into my FrontPage html. For some reason it ‘converted’ into a bunch of gibberish code in FP that obviously did not work.
The simple fix is to first cut and paste the script into a .txt file and then cut and past from the .txt into the FP html.
Thought I’d share that in case any of your other readers ran into this same issue.
Lynette January 23, 2008
You’re welcome everyone. I got tired of changing it out every year or finding out of date copyrights in July. Glad it is of help.
Thanks for tip Doug!
Anna – They usually go in the footer and yes I have mine on every single page. If you use included content in FrontPage, Dynamic Web Templates in Expression Web or WordPress, it is easy because you only change one file.
Anna January 31, 2008
Thanks Lynette,
I really enjoy your emails with your very helpful knowledge:) I have learned much from you.
Lynette February 2, 2008
Hi Anna, you made my day. Thanks!
Tash February 7, 2008
I’m not a lawyer either, but copyright is from when it is created so you don’t really have to update your copyright on every page. In fact, in many places, you don’t even have to add ‘copyright’ at all to be protected – it is just a visual reminder.
If someone was to fight over copyright with you and you have the date 2008 (despite writing it in 2003) and they claim they wrote it in 2005, it might take a bit more convincing to say you were first.
However, if you wrote something in say 1998 and your page says ‘copyright 1998′ it makes your page look a little out of date.
So add/update copyright as you see fit!
John Black March 7, 2008
Thanks for the script. This is actually something I had been looking for.
I have a couple of WordPress blogs that seem to keep track of this themselves, but I’ve got a couple of old static html sites that seem like they are never up to date.
Lynette March 7, 2008
Hey John, those static pages can be a hassle.
Designs 2 Print April 20, 2008
Thank You Very Much!!
i have been looking for that snippet everywhere!!
thank You!
Designs 2 Print
Lynette April 21, 2008
@Designs 2 Print: Glad you found it here