</font><br />
<div><a href="goods.php?id=5594"><img src="themes/meiku270/images/pro_miao.gif" ></a></div>
</div>
</div>
</div>
<script LANGUAGE="javascript">
startclock()
var timerID = null;
var timerRunning = false;
function showtime() {
var Today = new Date();
var NowHour = Hours();
var NowMinute = Minutes();
var NowMonth = Month();
var NowDate = Date();
var NowYear = Year();
var NowSecond = Seconds();
if (NowYear <2000)
NowYear=1900+NowYear;
Today = null;
Hourleft = 23 - NowHour
Minuteleft = 59 - NowMinute wa字符串是什么
Secondleft = 59 - NowSecond
Yearleft = 2009 - NowYear
Monthleft = 12 - NowMonth - 1
Dateleft = 31 - NowDate
if (Hourleft<10) /*此代码为显示00,小时,分钟,依次加就OK。。*/
{
Hourleft= "0" + Hourleft;
}
if (Minuteleft<10) /*此代码为显示00,小时,分钟,依次加就OK。。*/
{
Minuteleft= "0" + Minuteleft;
}
if (Secondleft<10) /*此代码为显示00,小时,分钟,依次加就OK。。*/
{
Secondleft= "0" + Secondleft;
}
if (Secondleft<0)
{
Secondleft=60+Secondleft;
Minuteleft=Minuteleft-1;
}
if (Minuteleft<0)
{
Minuteleft=60+Minuteleft;
Hourleft=Hourleft-1;
}
if (Hourleft<0)
{
Hourleft=24+Hourleft;
Dateleft=Dateleft-1;
}
if (Dateleft<0)
{
Dateleft=31+Dateleft;
Monthleft=Monthleft-1;
}
if (Monthleft<0)
{
Monthleft=12+Monthleft;
Yearleft=Yearleft-1;
}
Temp=Hourleft+' '+Minuteleft+' '+Secondleft+'';
document.form1.left.value=Temp;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
var timerID = null;
var timerRunning = false;
function stopclock () {
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function startclock () {
stopclock();
showtime();
}
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论