copy write date code

September 18, 2010 at 06:33:06
Specs: Windows XP pro
Whats the java script needed to have the copy write date change automatically in a WORD PRESS footer?

See More: copy write date code

Report •

September 20, 2010 at 06:42:42
I don't use word press, but check to see if the footer has an "id" attribute applied to the copyright... if it does, something like below *should* update the local time / date stamp. If not, just modify the script and add one <div id="copyr"></div>

var d = new Date(); // date object
document.getElementById("copyr").innerHTML = d.toLocalString();

If that's not the look you wanted, then there are various methods to the date object, which you can mill over here.


I have no aspiration for preaching. ;-)

Report •

September 20, 2010 at 15:03:38
Thanks, I really appreciate this. :)

Report •

Related Solutions

Ask Question