我想在我的网页上添加计时器倒计时......... [英] I want to add timer countdown on my web page .........

查看:138
本文介绍了我想在我的网页上添加计时器倒计时.........的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网页上添加一个倒数计时器,并在运行时将数据库的字段值放入其中,就像我在db中有一个表Start_time和End_time一样,在代码中,如果该页面在开始日期,结束日期和时间显示剩余时间,并动态减少时间.........请建议我该怎么做.
我通过dynamiccode链接上的脚本 http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm 进行了尝试a> [ ^ ],但我没有成功放置该脚本上的数据........
var christmas = new cdtime("countdowncontainer2",document.getElementById(<%= lblFullDateTime.ClientID%>").value.ToString())
但这对我不起作用,所以请帮我......

i want to add a countdown timer on web page and at runtime put my database''s field value in it like i have a table Start_time and End_time in db and at code i want to display a countdown if that page open between start date and end date and time shows the left time and decrease by the time dynamically.......... please suggest me how can i do it.
i tried it by the script available at dynamiccode link is http://www.dynamicdrive.com/dynamicindex6/dhtmlcount.htm[^] but i was not succeded to place my data on that script........
var christmas=new cdtime("countdowncontainer2",document.getElementById("<%=lblFullDateTime.ClientID%>").value.ToString())
but it doesn''t work for me so help me please......

推荐答案

通过以下链接可以为您提供帮助:

http://www.asp.net/ajax/documentation/live/tutorials/IntroToTimerControl.aspx [^ ]
Go through following link will help you :

http://www.asp.net/ajax/documentation/live/tutorials/IntroToTimerControl.aspx[^]


这篇关于我想在我的网页上添加计时器倒计时.........的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆