| Author |
Topic Search Topic Options
|
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Topic: Tired of Changing Copyright Year? Posted: 01 January 2006 at 4:31pm |
It's that time of year again when I go around changing the copyright year in the includes for html pages. Don't have to do it for asp pages though as they have this include at the end of the page...
<!--#include virtual="/inc/copyright.asp"--> |
/inc/copyright.asp contains this code...
<div class="copyright">Copyright © 2000-<%=Year(Date)%>, CompanyName. All Rights Reserved</div> |
CSS class looks like this...
.copyright { font-size: 75%; text-align: center; margin-top: 20px; margin-bottom:10px; } |
Edited by dpyers - 01 January 2006 at 4:35pm
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
site master
Newbie
Joined: 08 January 2006
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 12:08pm |
|
never thought about this, i chang the year in the bottom include page
|
 |
ctscott
Senior Member
Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 2:22pm |
|
i just code in © <%=Year(Date)%><%=Year(Date)%>
|
|
|
 |
site master
Newbie
Joined: 08 January 2006
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 4:16pm |
|
it will show you the same year all the time...
|
 |
ctscott
Senior Member
Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 6:25pm |
it's the same year all year 
|
|
|
 |
site master
Newbie
Joined: 08 January 2006
Status: Offline
Points: 33
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 7:15pm |
|
amm it needs to be the first year the software came out and the currect year no?
Edited by site master - 09 January 2006 at 7:16pm
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 7:32pm |
|
Better to use © instead of ©. Works better with XML.
Back in the days before I knew better, I made some sites with .htm/.html home pages. Can't change them now to end in a scripting extension like asp, php, or aspx without having to do a lot of redirects for the search engines. For those sites, I have to annually update includes.
Now, for windows sites, I try to use a .asp extension on all pages that just contain html to cover extingencies like this. The asp processor on the server can handle html so there's no signigicant time lost. With the php processor, it flip-flops between itself anf the windows server html processor so pure html pages take a little longer to render with a php extension.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
ctscott
Senior Member
Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
|
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 9:17pm |
|
i agree dpyers. sorry about my post. i didn't see your "copyright.asp" code at first.....i just saw a scroll bar thinking it was an image and wondering what it was doing there.
|
|
|
 |