Any problem with HTML can be discussed here.
-
znad
- Posts: 250
- Joined: Sat Oct 01, 2005 3:12 pm
Post
by znad »
Just copy and paste the following script in the bottom of your webpages, it will automatically keep your copyright notice updated.
Code: Select all
<script language="JavaScript">
<!--
function y2k(number) { return (number < 1000) ? number + 1900 : number; }
var today = new Date();
var year = y2k(today.getYear());
****.write('© '+year+' site.com- All Rights Reserved');
//-->
</script>
-
kaos_frack
- Posts: 504
- Joined: Sat May 07, 2005 8:03 am
-
Contact:
Post
by kaos_frack »
nice trick
but it really relies on the users time
if the users time settings are not correct
then you may have problems
-
Mizo
Post
by Mizo »
yah o agree with kaos_frack
-
redwall_hp
- Posts: 24
- Joined: Thu Jun 01, 2006 3:22 pm
Post
by redwall_hp »
Do something with PHP/SHTML to get it from the server. You could do something similar to do an auto-updating "last edited on:" thing too.
-
uz
- Posts: 140
- Joined: Sat Dec 24, 2005 5:32 pm
Post
by uz »
which part of the code should we put? body? head? or css styles?