/ Published in: JavaScript
URL: http://snipplr.com/view/1394/automatic-date-for-footer/
i found this snippet here on snipplr (see the link up above), and really liked it. it came up with a validation error under XHTML 1.0 Strict so i changed it to what you see in the bottom.....
Expand |
Embed | Plain Text
© **PUT YEAR HERE** <script type="text/javascript"> var d=new Date(); yr=d.getFullYear(); if (yr!=2002) document.write("-"+yr); </script>
Comments
Subscribe to comments
You need to login to post a comment.

Useful, but you need a semicolon in line 4