[thelist] Automatically updating copyright date in JavaScript - fallback?

Tom Dell'Aringa pixelmech at yahoo.com
Fri Nov 11 09:34:57 CST 2005

--- Matt Warden <mwarden at gmail.com> wrote:

> Why not just put the word 'Present' in the span by default? So, non-JS
> users will get "Copyright 2000-Present', JS users will get "Copyright
> 2000-$currentYear". Or, if you don't like that, move the 2000 into the
> span, and have "Copyright <span>since 2000</span>" for non-JS,
> "Copyright <span>2000-$currentYear</span>" for JS users.

Yeah, that's the ticket! I was trying to think of a default value to put in there (since JS will
overwrite it anyway) for non-JS - that's exactly what I need. I like the 'since 2000' idea. 



"I was in a convenience store reading a magazine and the clerk came up to me and said "This is not a library". so I said, "All right, I will talk louder then!"

More information about the thelist mailing list