代码如下 :
<html>
<헤드>
<meta http-equiv = "content-type"content = "text/html; charset = gb2312">
<title> , ,, 适用于 Windows 2K/XP/2003 </title>
<HTA : 응용 프로그램
id = "wtimer"
maximizebutton = "no"
MinimizeButton = "예"
SingleInstance = "예"
ContextMenu = "예"
sysmenu = "예"
버전 = "1.0"
Innerborder = "아니요"
캡션 = "예"
Showintaskbar = "예"
국경 = "정상"
Borderstyle = "정상"
ApplicationName = "Windows 타이머"
아이콘 = "timerico.ico"
/>
<스타일 유형 = "텍스트/CSS">
<!-
* {Font-Family : Courier New, Arial, Sans-Serif; Font-Size : 9pt; }
신체 {오버플로 -y : 숨겨진; }
Div A : Link, Div A : 방문 {Text-Decoration : None; Color :#000}
Div A : 호버 {텍스트 설명 : 밑줄; 색상 :#f00}
#footerInfo {너비 : 100%; 디스플레이 : 테이블; 마진-탑 : 5px; }
#Left {float : 왼쪽; 너비 : 70%; }
#right {float : 오른쪽; 너비 : 29%; 텍스트-정렬 : 오른쪽; 마진 오른쪽 : 1px; }
->
</스타일>
<script language = "javaScript">
<!-
$ bl_sleep = false;
함수 getObject ($ obj) {
return (document.getElementById ($ obj));
}
String.prototype.parseint = function () {
return (parseint (this));
}
함수 getRadioval ($ name) {
$ OEMS = Document.GetElementsByName ($ name);
for ($ i = 0; $ i <$ oems.length; $ i ++) {
if ($ oems [$ i] .Checked) {return ($ oems [$ i] .Value); }
}
}
함수 isdeclared ($ varname) {
return (typeof ($ varname)! = "undefined");
}
함수 chstatus ($ name, $ status) {
$ ooems = document.getElementsByName ($ name);
for ($ a = 0; $ a <$ ooems.length; $ a ++) {
$ ooems [$ a] .disabled = $ 상태;
}
}
함수 Window.onload () {
$ SWIDTH = Window.Screen.width;
$ sheight = shindow.screen.height;
$ awidth = 400;
$ aheight = 185;
window.resizeto ($ awidth, $ aheight);
Window.Moveto (($ SWIDTH- $ awidth)/2, ($ sheight- $ aheight)/2);
document.bgcolor = "#d4d0c8";
getObject ( "stopbutton"). disabled = true;
getObject ( "왼쪽"). innerhtml = "提示 : 请选择您想要使用的功能!";
}
함수 timer_quit () {
Window.Close ();
}
function timer_kernel () {
if ($ bl_sleep) {
if (isdeclared ($ time) && isdeclared ($ mod_time) && isdeclared ($ operation)) {
if ($ time> 0) {
$ oper_str = "";
$ hint_str = "";
$ titl_str = "";
if ($ operation == "rwin") {
$ oper_str = "<span style =/"color : red/"> 提示 : 系统计时重启功能已启用, 请注意保存! </span>";
}
또 다른 {
$ oper_str = "<span style =/"color : red/"> 提示 : 系统计时关闭功能已启用, 请注意保存! </span>";
}
if ($ mod_time == "mod_minute") {
$ tminute = ($ time/60) .toString (). parseint ();
$ tsecond = $ time%60;
if ($ tminute! = 0) {
if ($ tsecond <10) {
$ tsecond = "0"+$ tsecond;
}
$ titl_str = "剩余时间 :"+$ tminute+"分"+$ tsecond+"秒";
}
또 다른 {
$ titl_str = "剩余时间 :"+$ tsecond+"秒";
}
}
또 다른 {
$ titl_str = "剩余时间 :"+$ time+"秒";