Make a Dynamic Copyright Date with JavaScript 2
Jan4
I recently read a tweet from another designer reminding everyone to update the copyright date on the footer of their website. This reminded me that I cobbled together a little JavaScript last year that will automatically display the current year so you’ll never have to manually change it. Here’s the code:
© <script type="text/javascript">var theDate=new Date(); document.write(theDate.getFullYear())</script> dannyhoukJust replace my name in the code with your site name and that’s it. Just a little New Years tip for y’all.
Nice script- probably help a lot on my site. Nice New Years tip.
~~~ sharnon ~~~
Thanks Sharnon :)