页脚的自动日期
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了页脚的自动日期相关的知识,希望对你有一定的参考价值。
You can use this script to always keep the copyright notice on the footer of your website current. For example, instead of having to update the year at the beginning of each year, this script will display current year. I'm sure there's an easier way of doing this, but I ran across it tonight and thought it was a clever idea. When putting it in your code, it would look something like "Copyright 2001[script goes here]"
var d=new Date(); yr=d.getFullYear(); if (yr!=2002) document.write("-"+yr); </script>
以上是关于页脚的自动日期的主要内容,如果未能解决你的问题,请参考以下文章