最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

離22周歲距離多長(zhǎng)時(shí)間的計(jì)算[適合沒(méi)到22周歲的朋友]

 更新時(shí)間:2011年02月22日 21:13:22   作者:  
保存下面的為HTMLApplication,后綴為HTA的文件,然后運(yùn)行,就可簡(jiǎn)單的計(jì)算出本人離22周歲大體差多少時(shí)間了。
嘿嘿不是很精確,懂的朋友就不要笑話本人了。雖然我想做的很精確,但算法太過(guò)繁瑣,所以就用個(gè)簡(jiǎn)單省事的了。
復(fù)制代碼 代碼如下:

<script language="JavaScript">
/*
screen.availWidth = 屏幕工作區(qū)寬
screen.availHeight = 屏幕工作區(qū)高
*/
var wWidth = screen.availWidth-(screen.availWidth-370+78)-100;
var wHeight = 20;
var wLeft = screen.availWidth-370+78;
var wTop = 0;
window.moveTo(wLeft,wTop);
window.resizeTo(wWidth,wHeight);
</script>
<script language="VBScript">
uName = "小蔡"
uBirthDay = #1981-01-25 00:00:00#
uSex = 1 ''''' 0=女 1=男 '''''
lAge = Array(20,22)
lDate = dateadd("yyyy",lAge(uSex),uBirthDay)
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<title>結(jié)婚</title>
<HTA:APPLICATION
ID="HTA_Pro_Marriage"
APPLICATIONNAME="Pro_Marriage"
BORDER="none"
CAPTION="no"
SCROLL="no"
SINGLEINSTANCE="yes"
WINDOWSTATE="normal"
showintaskbar="no"
>

<style>
body {
margin: 0px;
}
body,td,div {
font-family: "宋體";
font-size: 14px;
}
img, table, td, div {
border: 0px;
}
</style>
<script language="VBScript">
dim sDate,nDay,nMonth,nYear,nSecond,nMinute,nHour
function ShowTime()
nDay = Day(now())
nHour = Hour(now())
nMinute = Minute(now())
nSecond = Second(now())
dHour = Hour(lDate) - nHour
dMinute = Minute(lDate) - nMinute
dSecond = Second(lDate) - nSecond
if dSecond < 0 then
dMinute = dMinute - 1
dSecond = dSecond + 60
end if
if dMinute < 0 then
dHour = dHour -1
dMinute = dMinute + 60
end if
if dHour < 0 then
nDay = nDay -1
dHour = dHour + 24
end if
if dSecond = 0 then
call ShowDate()
end if
document.getElementById("MyDIV2").innerHTML=sDate & " " & dHour & "時(shí)" & dMinute & "分" & dSecond & "秒"
setTimeout "ShowTime()",1*1000
end function
function ShowDate()
nYear = Year(now())
nMonth = Month(now())
dYear = Year(lDate) - nYear
dMonth = Month(lDate) - nMonth
dDay = Day(lDate) - nDay
if dDay < 0 then
dMonth = dMonth -1
dDay = dDay + 30
end if
if dMonth < 0 then
dYear = dYear -1
dMonth = dMonth + 12
end if
sDate = dYear & "年" & dMonth & "月" & dDay & "日"
'document.getElementById("MyDIV1").innerHTML="<font color=red>" & uName & "</font> 據(jù)法定結(jié)婚年齡<font color=blue>" & lAge(uSex) & "</font>周歲"
end function
</script>
</head>
<body onload="ShowTime();ShowDate();">
<div id="MyDIV1" style="padding-left:3px;padding-top:2px;"></div>
<div id="MyDIV2" style="padding-left:7px;padding-bottom:2px;"></div>
</body>
</html>

相關(guān)文章

最新評(píng)論

嘉禾县| 堆龙德庆县| 南木林县| 棋牌| 丘北县| 会东县| 逊克县| 无为县| 华安县| 江孜县| 沧源| 乌兰浩特市| 白银市| 砚山县| 那曲县| 卓尼县| 辽宁省| 碌曲县| 奉新县| 津市市| 普兰店市| 淮安市| 马公市| 蛟河市| 德江县| 北安市| 锦屏县| 雅江县| 平陆县| 江城| 嘉鱼县| 垣曲县| 延寿县| 乌拉特前旗| 宁阳县| 门头沟区| 刚察县| 清丰县| 手游| 涟源市| 东乌|