您现在的位置是:网站首页> 编程资料编程资料
如何制作一个倒计时的程序?_编程10000问_
                    
                
                2023-05-25
                278人已围观
            
简介 如何制作一个倒计时的程序?_编程10000问_
<% 
CountdownDate = #1/1/2008 00:00:00AM#
If Date >= CountdownDate Then
    Response.Write "2008  北京"
    Response.End
End If
theDate    = Now
DaysLeft    = DateDiff("d",theDate,CountdownDate) - 1
theDate    = DateAdd("d",DaysLeft,theDate)
HoursLeft  = DateDiff("h",theDate,CountdownDate) - 1
theDate    = DateAdd("h",HoursLeft,theDate)
MinutesLeft = DateDiff("n",theDate,CountdownDate) - 1
theDate    = DateAdd("n",MinutesLeft,theDate)
SecondsLeft = DateDiff("s",theDate,CountdownDate) - 1
%>
现在时间: <%= Now %>
[1]
                                
                                                        
                                
                                                        
                                
                                                        
    