<div class="htmlarea"> <textarea id="runcode28556"> <script> function yeart(){ var now=new Date(); var year=now.getFullYear(); var ss=year-2008;//设定2008为初始年份 var ssc=ss%12; var ssyear=new Array("子鼠","丑牛","寅虎","卯兔","辰龙","巳蛇","午马","未羊","申猴","酉鸡","戌狗","亥猪"); document.write(year+"年 "+ssyear[ssc]); } </script> </textarea><br><input onclick="runEx('runcode28556')" type="button" value="运行代码"> <input onclick="doCopy('runcode28556')" type="button" value="复制代码"> <input onclick="doSave(runcode28556)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>