×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Rick Clark
Added: Aug 10, 2012 2:02 PM
Modified: Aug 10, 2012 10:31 PM
Views: 37
Tags: no tags
2 scripts, 1st is used to call up the correct year for copyright in footer. The 2nd script uses javascript to hide email address in footer.
  1. <script>
  2. var mydate=new Date()
  3. var year=mydate.getYear()
  4. if (year < 1000)
  5. year+=1900
  6. document.write(""+year+"")
  7. </script>
  8.  
  9. <script language=javascript>
  10.  
  11.   <!--
  12.  
  13.   var email = "advmania"
  14.  
  15.   var emailHost = "aol.com"
  16.  
  17.   document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + email + "@" + emailHost + "</a>" + ".")
  18.  
  19.   //-->
  20.  
  21. </script>