/ Published in: JavaScript
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
Copy this code and paste it in your HTML
© **PUT YEAR HERE** <script type="text/javascript"> var d=new Date(); yr=d.getFullYear(); if (yr!=2002) document.write("-"+yr); </script>
URL: http://snipplr.com/view/1394/automatic-date-for-footer/