用Visual Basic6.0怎么做一个倒计时程序?
假设你的窗体上有一个TextBox和Label。
你输入的数字是正确的。
那么:
1)在程序“声明”处声明“Dim i As Integer”。
2)在界面上拖拽一个Timer,Interval设置1000,Enabled=False。
3)双击Timer,事件中写代码:
Label1.Caption = i
If (i <=0) Then
Timer1.Enabled = false
Else
i = i-1
End If
4)双击按钮,事件中这样写:
Timer1.Enabled = True
交互式电子白板倒计时如何设置
白板本身没有这个功能,白板软件里边应该有这个功能,你可以打开白板软件在工具里找到数字时钟,时钟右下角有个设置按钮选择倒计时设置就哦了!~希望你能帮到你,由于白板软件的不同,大概就是这个操作步骤!
如何在网页上添加倒计时
<FONT color=#990000 size=3>网站倒计时<b><SPAN id=span_dt_dt></SPAN></b></FONT>
<SCRIPT language=javascript>
<!--
function show_date_time(){
window.setTimeout("show_date_time()", 1000);
BirthDay=new Date("17-5-2010");//
today=new Date();
timeold=(BirthDay.getTime()-today.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60);
span_dt_dt.innerHTML=""+daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒"+"" ;
}
show_date_time();
//-->
</SCRIPT>
为什么微软要IE6倒计时
因为IE6阻碍互联网发展!! 我正在做网站,我的大部分时间都花在兼容IE6这个老东西上了!很多效果,它不支持,为了让它支持,就要想其他办法,总之,代码量会增加很多,最要命的是,这些增加的代码还会影响其他代码的工作,我整天改来改去,杯具的很啊!!恨死6爷了,大家都不要用啊,用IE8吧,你会发现互联网更美丽,如果你留心,你会看到一些在6下看不到的效果。
还有,IE6有很多漏洞,你看微软发布的漏洞补丁,有一大半是针对IE6的,总之,我恨他。
html页面中设置倒计时
<TBODY>
<TR>
<TD width=200>
<TBODY>
<TR>
<TD>
<TABLE width=234 height="60"
border=0 align=center cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD colSpan=2 height=24><div align="center" class="STYLE3">距08年8月8日 奥运会开幕还有</div></TD></TR>
<TR>
<TD align=middle class=fb id=timeDate><div align="center" class="STYLE3">660天</div></TD>
<TD
align=middle class=fb id=times><div align="center" class="STYLE3">18:09:53</div></TD>
</TR>
<TR>
<TD colspan="2" align=middle class=fb id=timeDate><div align="center"><span class="STYLE3"><br>
距08年7月8日</span> 生日还有</div></TD>
</TR>
<TR>
<TD width="87" align=middle class=fb id=timeDate2><div align="center" class="STYLE3"></div></TD>
<TD width="147"
align=middle class=fb id=times2><div align="center" class="STYLE3"></div></TD>
</TR></TBODY></TABLE>
<SCRIPT>
var now = new Date();
function createtime(){
var grt= new Date("8/08/2008 20:00:00");
now.setTime(now.getTime()+250);
days = (grt - now) / 1000 / 60 / 60 / 24;
dnum = Math.floor(days);
hours = (grt - now) / 1000 / 60 / 60 - (24 * dnum);
hnum = Math.floor(hours);
if(String(hnum).length ==1 ){hnum = "0" + hnum;}
minutes = (grt - now) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
mnum = Math.floor(minutes);
if(String(mnum).length ==1 ){mnum = "0" + mnum;}
seconds = (grt - now) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
snum = Math.round(seconds);
if(String(snum).length ==1 ){snum = "0" + snum;}
document.getElementById("timeDate").innerHTML = dnum+"天";
document.getElementById("times").innerHTML = hnum + ":" + mnum + ":" + snum;
}
function createtime2(){
var grt= new Date("7/08/2008 20:00:00");
now.setTime(now.getTime()+250);
days = (grt - now) / 1000 / 60 / 60 / 24;
dnum = Math.floor(days);
hours = (grt - now) / 1000 / 60 / 60 - (24 * dnum);
hnum = Math.floor(hours);
if(String(hnum).length ==1 ){hnum = "0" + hnum;}
minutes = (grt - now) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
mnum = Math.floor(minutes);
if(String(mnum).length ==1 ){mnum = "0" + mnum;}
seconds = (grt - now) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
snum = Math.round(seconds);
if(String(snum).length ==1 ){snum = "0" + snum;}
document.getElementById("timeDate2").innerHTML = dnum+"天";
document.getElementById("times2").innerHTML = hnum + ":" + mnum + ":" + snum;
}
setInterval("createtime()",250);
setInterval("createtime2()",250);
</SCRIPT>
</TD></TR></TBODY></TABLE>