hta: HTMLApplications
hta is an executable program for html. It is very simple to make. Just change the file *.htm to *.hta.
However, hta has its own unique tag <hta> and can set its properties to achieve very good results.
hta is an excellent choice for making mini programs.
Here is an example written a few days ago when the company was bored.
Code:
The code is as follows:
<HTML>
<HEAD>
<HTA:APPLICATION
CAPTION="no"
SCROLL="no"
SHOWINTASKBAR="no"
INNERBORDER="no"
CONTEXTMENU="no"
BORDER="none"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"
>
<title>0009.cnblogs.com</title>
<SCRIPT>
vartimer=100;
varrandDiv=newArray(100);
window.onload=function()
{
for(vari=0;i<randDiv.length;i++)
{
randDiv[i]=document.createElement("DIV");
randDiv[i].style.cssText="filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);";
randDiv[i].style.position="absolute";
randDiv[i].style.background=GetRandomColor();
document.body.appendChild(randDiv[i]);
}
Fun();
}
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()",timer);
}
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);