HTA : htmlapplication
HTA는 HTML의 실행 프로그램입니다. 만드는 것은 매우 간단합니다. *.htm을 *.hta로 변경하십시오.
그러나 HTA는 고유 한 태그 <HTA>를 가지고 있으며 매우 좋은 결과를 얻기 위해 속성을 설정할 수 있습니다.
HTA는 미니 프로그램을 만드는 데 탁월한 선택입니다.
다음은 며칠 전에 회사가 지루한 예입니다.
암호:
코드는 다음과 같습니다.
<html>
<헤드>
<HTA : 응용 프로그램
캡션 = "아니오"
스크롤 = "아니요"
Showintaskbar = "아니요"
Innerborder = "아니요"
ContextMenu = "아니요"
국경 = "없음"
SingleInstance = "예"
Windowstate = "최대화"
>
<title> 0009.cnblogs.com </title>
<cript>
Vartimer = 100;
varranddiv = newArray (100);
Window.onload = function ()
{
for (vari = 0; i <randdiv.length; i ++)
{
randdiv [i] = document.createElement ( "div");
randdiv [i] .style.csstext = "필터 : progid : dximagetransform.microsoft.alpha (불투명도 = 50);";
randdiv [i] .style.position = "절대";
randdiv [i] .style.background = getrandomcolor ();
document.body.appendChild (randdiv [i]);
}
재미있는();
}
functionfun ()
{
for (vari = 0; i <randdiv.length; i ++)
{
randdiv [i] .style.top = math.floor (math.random ()*window.screen.height);
randdiv [i] .style.left = math.floor (math.random ()*window.screen.width);
randdiv [i] .style.width = math.floor (math.random ()*100);
randdiv [i] .style.height = math.floor (math.random ()*100);
randdiv [i] .style.background = getrandomcolor ();
}
settimeout ( "fun ()", 타이머);
}
functiongetRandomColor ()
{
varr = math.floor (math.random ()*255) .tostring (16);
varg = math.floor (math.random ()*255) .tostring (16);
VARB = MATH.FLOOR (Math.Random ()*255) .ToString (16);