TRIF3CTA Interactive Marketing

Need web help? Hire TRIF3CTA. Subscribe
home / blog / entry

Dynamic Copyright Notices in 7 Web Languages

Website copyright notices are ubiquitous; you can find them in the footer of almost any site. It's also easy to spot copyright notices that haven't been updated in years, which could potentially send the signal that nobody is behind the wheel. A simple solution is to have the year update dynamically.

Here's several ways to "set it and forget it":

JavaScript

&copy; <script type="text/javascript"> //<![CDATA[ var d = new Date(); document.write(d.getFullYear()); //]]> </script>

PHP

&copy; <?php echo date("Y"); ?>

Ruby/ERB

&copy; <%= Time.now.year %>

Django/Python

&copy; {% now "Y" %}

ASP

&copy; <% Response.Write Year(now) %>

JSP

&copy; <jsp:useBean id="now" class="java.util.Date"/> <fmt:formatDate value="${now}" type="DATE" pattern="yyyy"/>

ActionScript/Flash

trace("&copy; " + new Date().getFullYear();

Tags: timestamp, copyright notice

About the author
Judd Lyon

Judd Lyon is the Principal of TRIF3CTA, a web design and Internet marketing company in Austin, Texas.

LinkedIn: Judd Lyon | Twitter: @TRIF3CTA

Comments

There are no comments for this entry.


Leave a comment

The TRIF3CTA Blog is a collection of web design and Internet marketing hacks ideas.

TRIF3CTA is an online marketing company based in Austin, Texas. Learn more &rarr

Twitter: @trif3cta

“Page Load Speed to Affect Organic SEO? I hope so! Via BuzzStream: http://bit.ly/AqNKJ”

“1 line CSS grid framework: http://tr.im/nsjw”

“jQuery Tools just came out! 5.8K and includes all the interface stuff most of us need. YES! (* in Marv Albert voice *) http://tr.im/nr5D”

“Google Local Lures Small Businesses With Their Own Web Dashboard http://tcrn.ch/2y5 by @erickschonfeld”

“Drag 'n drop product comparison with jQuery: http://tr.im/ndgS”

“@robertbanh - I don't think so, it needs to know when the scrollbar should kick in. You might try a JS solution like this (jScrollPane): ...”

“Do small businesses really need a website? A contrarian view: http://tr.im/naPk”

“I can't name three better web dev blogs than Perishable Press: http://perishablepress.com/”

“RT @jdeeringdavis' 1st seller interview on the @cheaptweet blog. http://budurl.com/ctitc - these will be fun”

“Checkout Inspiration From Top Converting Sites http://bit.ly/G2xum”

“Top Ten Myths About Google Analytics http://bit.ly/V6nOS”

“Setting up custom URL structures in ExpressionEngine, via 47Media by way of EEInsider http://bit.ly/uEZ3f”

“looking at PhoneGap, an easier way to dev mobile apps: http://bit.ly/eO4W”

“Don't feel bad about your typos, one of these cost a firm $224M: http://bit.ly/Wv6C1”

“RT @tweetmeme How Google detects paid links in websites | SeoUnique Blog http://bit.ly/HvpUT”

“checking out the Evolution of Cell Phone Design http://bit.ly/5t2eH”

“slick ExpressionEngine excerpts courtesy of Ryan Masuga: http://bit.ly/anNPT”

“a great discussion about ampersand (&) usage: http://typophile.com/node/12426”

Powered by ExpressionEngine Clicky Web Analytics
List once, be found everywhere
Trifecta Interactive Marketing, LLC
1712 E Riverside Dr, Ste 63
Austin, TX, 78741