asp.net中页面显示当前系统时间(aspx)
来源:互联网 发布:诺基亚c1软件下载 编辑:程序博客网 时间:2024/04/28 14:26
<p class="time">当前系统时间:<script type="text/javascript">
today = new Date();
function initArray() {
this.length = initArray.arguments.length
for (var i = 0; i < this.length; i++)
this[i + 1] = initArray.arguments[i]
}
var d = new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
document.write(
"<font color=##000000 style='font-size:9pt;font-family: 宋体'> ",
(today.getYear()), "年",
today.getMonth() + 1, "月",
today.getDate(), "日",
d[today.getDay() + 1],
"</font>");
</script> <span id="liveclock"></span> <script type="text/javascript">
function www_helpor_net() {
var Digital = new Date()
var hours = Digital.getHours()
var minutes = Digital.getMinutes()
var seconds = Digital.getSeconds()
if (minutes <= 9)
minutes = "0" + minutes
if (seconds <= 9)
seconds = "0" + seconds
myclock = hours + ":" + minutes + ":" + seconds
if (document.layers) {
document.layers.liveclock.document.write(myclock)
document.layers.liveclock.document.close()
} else if (document.all)
liveclock.innerHTML = myclock
setTimeout("www_helpor_net()", 1000)
}
www_helpor_net();
</script> </p>
效果图如下:
- asp.net中页面显示当前系统时间(aspx)
- ASP.NET 页面中 滚动当前系统时间
- asp.net中实现页面上动态显示系统时间
- asp.net 点击按钮退出当前XXX.aspx页面
- ASP.net中DateTime获取当前系统时间的大全
- asp.net 中datetime获取当前系统时间的大全
- ASP.net中DateTime获取当前系统时间的大全
- 显示在页面当前系统时间
- 页面动态显示当前系统时间
- web页面上显示当前系统时间
- 在页面显示系统当前时间
- aspx页面调试(asp.net)
- JSP页面中显示当前时间
- ASP。Net中如何关闭当前页面
- ASP.Net中如何关闭当前页面
- ASP.Net中如何关闭当前页面
- asp.net中关闭当前页面代码
- Asp.net中读取当前页面
- Asterisk 并发量到100后就出现拨打电话挂机问题
- linux下打开windows txt文件中文乱码问题
- 墓碑时数据在Application_Deactivated的保存发生异常
- 安装在Android机器上的截图程序实现,需要root
- jfinal --获取客户端真实的ip地址
- asp.net中页面显示当前系统时间(aspx)
- win 8 ScrollView简单练习
- 工作流几种常用的模式
- 微博 空间 。。分享
- Endnote 文献格式 带点
- ActiveMQ配置warpper.log的大小和数量
- 取满足所有条件的记录
- adb命令原理篇
- POJ 1019 Number Sequence