注册 登录
编程论坛 ASP.NET技术论坛

ASP.NET页面中怎样显示动态的时间?脚本是用VB

lzm 发布于 2008-01-01 21:25, 2772 次点击
dim timerdate as string
timerdate=now
lblShow2.text="<font color='red'>系统时间:"+timerdate+"</font>"
把这个写到page_load()里面只能显示不会动的时间!
我要写一个秒会走的时间怎么写?
听说可以用Timer!可是我不会写!
5 回复
#2
lzm2008-01-01 22:33
再顶下!怎么没人回答!
改了板怎么这么少人了!
我都找了好几天才找到!
#3
guoxhvip2008-01-02 00:10
<meta http-equiv="refresh" content="1;url=页面名.axpx">
这样就会动态了
#4
lzm2008-01-06 21:36
还是不会!不明白!刚学的比较笨!能说清楚点吗?
#5
1916381412008-01-08 14:36
<body>

<script language="javascript">
    function showTime(){
      d = new Date()
      time = d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds();
     txt.value = time; }
    setInterval("showTime()",1000);
</script>
<input type="text" id="txt" size="10">
</body>
#6
hjj7222008-03-15 03:32
正好要用,呵呵!
1