![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My website http://www.crimedoctor.com has Java Scripts at the very bottom of the page for updating the copyright year and page last updated date. It displays the year perfectly in IE 6.0 as ?5/16/2005? However, in Netscape and Firefox the Java Script displays the year as ?5/16/105? Can anyone advise me how to fix this code?I can?t see the error? Here is the Java Script code: script type="text/javascript"></script script type="text/javascript">function todayStr() { var today=new Date() return today.getMonth()+"/"+today.getDate()+"/"+(today.getYear()) } function yearStr() { var today=new Date() return today.getYear() } /script Copyright © 1996- script type="text/javascript">document.write(yearStr())</script - Aegis Books, Inc. - All Rights Reserved - <br Page Last Updated - script type="text/javascript">document.write(todayStr())</script |
#3
| |||
| |||
|
|
Copyright © 1996- script type="text/javascript">document.write(yearStr())</script - Aegis Books, Inc. - All Rights Reserved - <br Page Last Updated - script type="text/javascript">document.write(todayStr())</script |
#4
| |||
| |||
|
|
I'd suggest not using javascript for the copyright date, since that only needs updating once a year, a SSI might make more sense. |
|
Copyright © 1996- script type="text/javascript">document.write(yearStr())</script - Aegis Books, Inc. - All Rights Reserved - <br Page Last Updated - script type="text/javascript">document.write(todayStr())</script I'd suggest not using javascript for the copyright date, since that only needs updating once a year, a SSI might make more sense. Also, the javascript 'last updated' is pointless, since it doesn't have anything to do with when the page was actually last updated, so I'd just get rid of that. -Darrel |
#5
| |||
| |||
|
|
Say what? |
#6
| |||
| |||
|
|
Copyright © 1996- script type="text/javascript">document.write(yearStr())</script - Aegis Books, Inc. - All Rights Reserved - <br Page Last Updated - script type="text/javascript">document.write(todayStr())</script I'd suggest not using javascript for the copyright date, since that only needs updating once a year, a SSI might make more sense. Also, the javascript 'last updated' is pointless, since it doesn't have anything to do with when the page was actually last updated, so I'd just get rid of that. -Darrel |
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| |||
| |||
|
|
I think what Murray was fazed by is the notion that you have to update copyright notices "once a year." The copyright year is the year in which the work was created. If that was 1999, the the copyright will be 1999, no matter what the year is now. So updating copyright notices to the current year is pointless and may actually invalidate them. |
#10
| |||
| |||
|
|
I think what Murray was fazed by is the notion that you have to update copyright notices "once a year." The copyright year is the year in which the work was created. If that was 1999, the the copyright will be 1999, no matter what the year is now. So updating copyright notices to the current year is pointless and may actually invalidate them. -- James M. Shook http://www.jshook.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |