嘿嘿不是很精确,懂的朋友就不要笑话本人了。虽然我想做的很精确,但算法太过繁琐,所以就用个简单省事的了。
复制代码 代码如下:
<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>
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。