Could someone please advise how to insert a "Web Page Last Updated" function in Web Designer Pro 6.
Thanks, Vern.
Could someone please advise how to insert a "Web Page Last Updated" function in Web Designer Pro 6.
Thanks, Vern.
Welcome to TG Forums,
If you have a script, use a placeholer.
If not, use the text tool, type the date then change the date manually each time you update the site
Thanks Sledger for the quick reply. My problem is I need a script, because at my age I forget to update small things like the date at the bottom of the page.
Regards, Vern.
Hi,
create a placeholder and copy the following code to the "replace with HTML" field:
<SCRIPT LANGUAGE="Javascript">
<!--
var date = new Date(document.lastModified);
document.write("<I>Last Updated:"+(date.getMonth()+1)+ "/"
+ date.getDate()+ "/" + date.getYear() + "</I>");
// -->
</SCRIPT>
Many thanks Sebastian, it's working well. You have no idea how many hours I have spent trying to solve this problem before asking for help. I'll know better in the future.
Thanks again, Vern.
Here's another which adds the time:
► DEMO
Also set the font color/size/face
Last edited by steve.ledger; 17 July 2010 at 12:23 PM.
Dreamer,
Wrap it in a font tag like this:
<font color=WHITE>
<SCRIPT LANGUAGE="Javascript">
<!--
var date = new Date(document.lastModified);
document.write("<I>Last Updated:"+(date.getMonth()+1)+ "/"
+ date.getDate()+ "/" + date.getYear() + "</I>");
// -->
</SCRIPT></font>
thank you sledger, im off to sort it nice one
http://naturalessex.co.uk/
sledger,
Could you also show how to change the font and font size using this script? I can get the color to change but not the font.
Thanks!
Jim
Bookmarks