圆月山庄资源网 Design By www.vgjia.com
嘿嘿不是很精确,懂的朋友就不要笑话本人了。虽然我想做的很精确,但算法太过繁琐,所以就用个简单省事的了。
复制代码 代码如下:
<script language="JavaScript">
/*
screen.availWidth = 屏幕工作区宽
screen.availHeight = 屏幕工作区高
*/
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>结婚</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 & "时" & 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> 据法定结婚年龄<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>
复制代码 代码如下:
<script language="JavaScript">
/*
screen.availWidth = 屏幕工作区宽
screen.availHeight = 屏幕工作区高
*/
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>结婚</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 & "时" & 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> 据法定结婚年龄<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>
标签:
22周岁
圆月山庄资源网 Design By www.vgjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
圆月山庄资源网 Design By www.vgjia.com
暂无评论...
更新日志
2024年11月01日
2024年11月01日
- 群星《狐妖小红娘月红篇 电视剧原声带》[320K/MP3][233.61MB]
- 英雄联盟s14四强淘汰赛规则是什么 全球总决赛四强淘汰赛规则详解
- 英雄联盟s14四强赛怎么分组 S14全球总决赛四强赛分组规则详解
- 英雄联盟s14四强赛抽签规则是什么 S14全球总决赛四强抽签规则详解
- ButterQuartet-ScintillaEarlyItalianStringQuartets(DeLuxe)(2024)[24Bit-WAV]
- 草原最美情歌《迷醉女中音》2CD/DTS-ES[WAV]
- 爵士女伶何芸妮《靡靡之音》(香港版)[WAVCUE]
- 游戏中辱骂他人同样侵犯名誉权 一玩家被判道歉
- 老游戏远程共享申请失败 美国版权局拒绝豁免请愿
- 通过本地化支付解决方案,解锁150亿美元拉美和非洲游戏市场
- 群星《狐妖小红娘月红篇 电视剧原声带》[FLAC/分轨][574.68MB]
- 群星《红色冲浪板 电影配乐专辑》[320K/MP3][106.63MB]
- 罗艺恒《What Could've Been》[320K/MP3][50.62MB]
- 于台烟.1989-人间山水【银河唱片】【WAV+CUE】
- 杨克强.1992-特制的面具【恩华声视】【WAV+CUE】