HTA: HTMLAPPLICACIONES
HTA es un programa ejecutable para HTML. Es muy simple de hacer. Simplemente cambie el archivo *.htm a *.hta.
Sin embargo, HTA tiene su propia etiqueta única <hta> y puede establecer sus propiedades para lograr muy buenos resultados.
HTA es una excelente opción para hacer mini programas.
Aquí hay un ejemplo escrito hace unos días cuando la compañía estaba aburrida.
Código:
El código es el siguiente:
<html>
<Evista>
<HTA: aplicación
Subtítulos = "no"
Scroll = "No"
ShowInTaskBar = "No"
InnerBorder = "no"
ContextMenu = "no"
Border = "ninguno"
SingleInstance = "Sí"
WindowState = "Maximizar"
>
<title> 0009.cnblogs.com </title>
<script>
Vartimer = 100;
Varranddiv = NewArray (100);
Window.Onload = function ()
{
para (vari = 0; i <randdiv.length; i ++)
{
randdiv [i] = document.createElement ("div");
randdiv [i] .style.csstext = "filtro: progid: dximagetransform.microsoft.alpha (opacidad = 50);";
randdiv [i] .style.position = "Absolute";
randdiv [i] .style.background = getRandomColor ();
document.body.appendChild (randdiv [i]);
}
Divertido();
}
FINTOFUN ()
{
para (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 ("diversión ()", temporizador);
}
functetRandomColor ()
{
varr = Math.floor (Math.random ()*255) .ToString (16);
varg = math.floor (math.random ()*255) .ToString (16);
varb = math.floor (math.random ()*255) .ToString (16);