Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 17th Sep 2010, 10:00 AM   #1
cockpit jockey
War Room Member
 
tailrunner's Avatar
 
Join Date: 2007
Location: wide blue yonder...
Posts: 25
Thanks: 5
Thanked 1 Time in 1 Post
Arrow
Date change code
Share on: 
fb share twitter share gplus share more share

Hey guys

What code do I install , so my copy write date, (in the footer), changes each year automatically? In wordpress.

&

where does it get placed within?

Thanx

P.S. = If you could respond with the actual code that I need to use would be awesome!

Modified Twin Engine Cessna 310D ----- very fast :)
tailrunner is offline  
Unread 17th Sep 2010, 01:26 PM   #2
.EDU Backlinks Crusher
War Room Member
 
iamsuneel's Avatar
 
Join Date: 2010
Location: In Front of CRT
Posts: 83
Thanks: 2
Thanked 10 Times in 10 Posts
Lightbulb
Re: Date change code
Share on: 
fb share twitter share gplus share more share

Try this.

Google for "javascript code to change year"

Computing[dot]net link has the perfect solution.

But, if a visitor's machine shows year 1990 now in his system clock, then the JS code too
shows the same.

This is because JS runs on local browser.

I am unable to paste the code because I am a newbie and I am not allowed to do that. Thanks.
iamsuneel is offline  
Unread 17th Sep 2010, 01:49 PM   #3
Marketing Technology dr.
War Room Member
 
NetMan's Avatar
 
Join Date: 2002
Location: AndreFoisy.com
Posts: 1,614
Thanks: 759
Thanked 793 Times in 309 Posts
Blog Entries: 1
Default
Re: Date change code
Share on: 
fb share twitter share gplus share more share

Originally Posted by tailrunner View Post

Hey guys

What code do I install , so my copy write date, (in the footer), changes each year automatically? In wordpress.

&

where does it get placed within?

Thanx

P.S. = If you could respond with the actual code that I need to use would be awesome!
You can use this script in the footer.php file

Code:
<script language="javascript">
<!--
today=new Date();
y0=today.getFullYear();
document.write('Copyright &copy; 2010 - '+y0+' - yoursite.com, all rights reserved.');
//-->
</script>
Best regards,

Andre Foisy

<!---
IGNORANCE is not an excuse anymore, all you need is Automate Kit!
---/>
NetMan is offline  
Unread 18th Sep 2010, 07:21 AM   #4
cockpit jockey
War Room Member
 
tailrunner's Avatar
 
Join Date: 2007
Location: wide blue yonder...
Posts: 25
Thanks: 5
Thanked 1 Time in 1 Post
Default
Re: Date change code
Share on: 
fb share twitter share gplus share more share

Excellent, thanks all.
I just couldn't remember the code ... must of been a brain freeze or something,

Modified Twin Engine Cessna 310D ----- very fast :)
tailrunner is offline  
Unread 18th Sep 2010, 09:46 AM   #5
Marketing Technology dr.
War Room Member
 
NetMan's Avatar
 
Join Date: 2002
Location: AndreFoisy.com
Posts: 1,614
Thanks: 759
Thanked 793 Times in 309 Posts
Blog Entries: 1
Default
Re: Date change code
Share on: 
fb share twitter share gplus share more share

Originally Posted by tailrunner View Post

Excellent, thanks all.
I just couldn't remember the code ... must of been a brain freeze or something,
YW just that I'M not "all" but Andre :p

<!---
IGNORANCE is not an excuse anymore, all you need is Automate Kit!
---/>
NetMan is offline  
Closed Thread


Bookmarks

Tags
change, code, date


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 05:04 AM.