设为首页 | 改版说明 | 大事记 | English | /繁体
艺术中国
  当前位置:设计首页 >> 设计 >> 网页设计 >> 文章正文

最后更新日期ASP代码
【作者:艺术中国】 【来源:艺术中国】  【字号:   我要投稿

"最后更新日期"
<script language="javascript">
<!--hide script from old browsersdocument.write("本页最后更新日期: " + document.lastModified + "")// end hiding -->
</script>
拷贝到你的html文件的<body>和</body>之间

走动的数字时钟
将下面的代码加入html文件的<head></head>之间
<script>
function tick() {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
xfile = "午夜";
} else if (intHours < 12) {
hours = intHours+":";
xfile = "上午";
} else if (intHours == 12) {
hours = "12:";
xfile = "正午";
} else {
intHours = intHours - 12
hours = intHours + ":";
xfile = "下午";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = xfile+hours+minutes+seconds;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;
</script>

将下面的代码加入html文件任意需要的地方

<div id="Clock" align="center" style="font-size: 20; color:#000000"></div>

加入收藏】 【打印本页】 【关闭窗口】 【返回顶部】【编辑:莫知】
  本文地址: http://www.artchn.com/design/design/web/197001/artchn_120711.html
  
 
【艺术中国精选中国画】

朱松发 乾坤万里图
会员价格:30000.00¥

吴同彦写意人物小品
会员价格:1000.00¥

王涛写意人物代表作品
会员价格:40000.00¥

许建康写意人物精品
会员价格:4500.00¥

王仁华写意 桃花源
会员价格:5000.00¥

艺术中国(Artchn.com)版权所有 | 互联网号:34011101210377 | ICP:皖ICP备05004617号
艺术中国(集团)网络传媒 Since 1999-2007 运营:合肥水墨兰亭文化传播有限公司