You are reading Javascript Code to Auto Update Copyright Year. You can leave a comment or trackback this post.
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| Nov » | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||
Posted on October 21st, 2006 by thetshirtnexus.
Categories: Website Tips.
Still pumped from CP Connect, I’ve been working on sprucing up some of my websites. Before I even got to more complicated things I noticed my copyright would soon be out of date. Copyright years for US residents should read the date of creation of the website to the last date the website was altered. In the case of my climbing site my copyright is from 2002 - 2006. I’ve used a javascript to auto update the last year for some other websites I own but I didn’t do it for this one for some reason. While googling for the script I used in the past, I came across an easier one to use which might help some of you out as well.
Here’s the explanation and cut and paste code. Essentially, you change the year to the first year you created your website and then drop the script where you’d want the copyright statement to appear and then add your name in regular html after it. If the year is any year but what you put in the copyright will be change to read 2005 - 2006 (or whatever the current year is).
As my friend Adam might say, easey peasey!
0 comments.
Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.