距离北京2008年奥运会开幕的倒记时特效,简单的演示一下! 距离北京奥运会开幕还有 <br> <html> <head> <title><NOBR><B class=kgb onmouseover='isShowAds = false;isShowAds2 = false;isShowGg = true;InTextAds_GgLayer="_u5012_u8BA1_u65F6";KeyGate_ads.ShowGgAds(this,"_u5012_u8BA1_u65F6",event)' style="BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: 0px; CURSOR: hand; COLOR: #0000ff; PADDING-TOP: 0px; BORDER-BOTTOM: 0px; TEXT-DECORATION: underline" onclick='javascript:window.open("http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=Bsb-dKPSdR9qtMpfI6wPzqqz7AaG6pTXNidvQA8CNtwGwrhUQARgBIK2F0A0oFDgAUMKdsxVgncHegdgFoAGH58n8A6oBCjIwMDAwMzc1NDGyAQ93d3cua25vd3NreS5jb23IAQHaASJodHRwOi8vd3d3Lmtub3dza3kuY29tLzM0OTY3NS5odG1sqQLmi1NfpqSCPsgC_ZKeAagDAegDgQToAxY&num=1&adurl=http://28.com/%3Fcomeid%3D20286&client=ca-pub-5186439242807756");GgKwClickStat("倒计时","28.com","afc","2000037541");' onmouseout='isShowGg = false;InTextAds_GgLayer="_u5012_u8BA1_u65F6"'>倒计时</B></NOBR><NOBR><B class=kgb onmouseover='isShowAds = false;isShowAds2 = false;isShowGg = true;InTextAds_GgLayer="_u6D4B_u8BD5";KeyGate_ads.ShowGgAds(this,"_u6D4B_u8BD5",event)' style="BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: 0px; CURSOR: hand; COLOR: #0000ff; PADDING-TOP: 0px; BORDER-BOTTOM: 0px; TEXT-DECORATION: underline" onclick='javascript:window.open("http://pagead2.googlesyndication.com/pagead/iclk?sa=l&ai=BOiSzKPSdR9qtMpfI6wPzqqz7AcaV7jOG06ywA8CNtwHwkwkQAhgCIK2F0A0oFDgAUI71qMQEYJ3B3oHYBaoBCjIwMDAwMzc1NDGyAQ93d3cua25vd3NreS5jb23IAQHaASJodHRwOi8vd3d3Lmtub3dza3kuY29tLzM0OTY3NS5odG1sqQLmi1NfpqSCPsgCyoCDAqgDAegDgQToAxY&num=2&adurl=http://www.astest-inc.com/&client=ca-pub-5186439242807756");GgKwClickStat("测试","www.astest-inc.com/","afc","2000037541");' onmouseout='isShowGg = false;InTextAds_GgLayer="_u6D4B_u8BD5"'>测试</B></NOBR></title> <!--倒计时设置代码--> <script language="JavaScript"> <!-- hide script from old browser var DifferenceHour = -1 var DifferenceMinute = -1 var DifferenceSecond = -1 var Tday = new Date("Aug 8, 2008 20:00:00") //**倒计时时间点-注意格式 var daysms = 24 * 60 * 60 * 1000 var hoursms = 60 * 60 * 1000 var Secondms = 60 * 1000 var microsecond = 1000 function clock() { var time = new Date() var hour = time.getHours() var minute = time.getMinutes() var second = time.getSeconds() var timevalue = ""+((hour > 12) ? hour-12:hour) timevalue +=((minute < 10) ? ":0":":")+minute timevalue +=((second < 10) ? ":0":":")+second timevalue +=((hour >12 ) ? " PM":" AM") // document.formnow.now.value = timevalue var convertHour = DifferenceHour var convertMinute = DifferenceMinute var convertSecond = DifferenceSecond var Diffms = Tday.getTime() - time.getTime() DifferenceHour = Math.floor(Diffms / daysms) Diffms -= DifferenceHour * daysms DifferenceMinute = Math.floor(Diffms / hoursms) Diffms -= DifferenceMinute * hoursms DifferenceSecond = Math.floor(Diffms / Secondms) Diffms -= DifferenceSecond * Secondms var dSecs = Math.floor(Diffms / microsecond) if(convertHour != DifferenceHour) document.formnow.dd.value=DifferenceHour if(convertMinute != DifferenceMinute) document.formnow.hh.value=DifferenceMinute if(convertSecond != DifferenceSecond) document.formnow.mm.value=DifferenceSecond document.formnow.ss.value=dSecs // document.formnow.Tnow.value= DifferenceHour DifferenceMinute + DifferenceSecond + dSecs setTimeout("clock()",1000) } // end hiding --> </script> </head> <!--BODY里面的ONLOAD注意--> <body onload="clock();return true" text="red"> <!--实现显示--> <form name="formnow"> <input name="dd" type="text" style="border:0;" size=2> 天 <input name="hh" type="text" style="border:0;" size=2> 小时 <input name="mm" type="text" style="border:0;" size=2> 分 <input name="ss" type="text" style="border:0;" size=2> 秒 </form> <!--倒计时完毕--> Tags:0px Diffms false style var 倒计时 name DifferenceHour
共有 0人发表了评论 查看完整内容我要说两句
用户名(必填) 新注册
密码(必填)匿名评论
文章评论
共有 0人发表了评论 查看完整内容