http://www.smallbusinesswebsite.com

Time Saving Tip For Automatically Updating Your Site

Time Saving Tip

by Rich Whittle and Tim Kerber

Still writing 2003 on your checks? Yep, me, too.

How about your web site?



  
Now that the new year is here, did you change all the copyright dates on every page?

I'm sure you've seen them. Web sites with copyright dates from several years ago... Doesn't exactly make you think it is very fresh or up to date content!

Here's a quick tip that once you use it, you'll NEVER have to change the copyright dates on your web pages AGAIN.

Cut and paste this snippet of Javascript between the head tags at the top of each web page with a copyright:

<SCRIPT LANGUAGE="JavaScript">
//
today=new Date();
y0=today.getFullYear();
// end hiding --->
</script>

Now cut and paste this snippet where you want the date to go, usually right after the @ symbol:

<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from old browsers
document.write(y0);
// end hiding --->
</script>

Here's what it should look like:

<td align="center"><font size="1">©<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from old browsers
document.write(y0);
// end hiding --->
</script> YOUR COMPANY NAME. ALL RIGHTS RESERVED.</font></td>

Of course, you'll want to select your own font size and replace 'Your Company Name' with your company name.

How does it work?

The Javascript looks at your computer's current date code and pulls out the year date and places it on your web page.

One less thing to worry about. Now if we could just use the same Javascript on our checkbooks...

Copyright 2007 Real Results Media, LLC
SmallBusinessWebSite.com
PO Box 1228, Hampton, NH 03843, (603) 365-6205
All Rights Reserved. Reproduction without permission prohibited.