HTA: HTMLAPPLATIONS
HTA est un programme exécutable pour HTML. C'est très simple à faire. Changez simplement le fichier * .htm en * .hta.
Cependant, HTA a son propre balise unique <HTA> et peut définir ses propriétés pour obtenir de très bons résultats.
HTA est un excellent choix pour faire des mini programmes.
Voici un exemple écrit il y a quelques jours lorsque l'entreprise s'ennuyait.
Code:
Le code est le suivant:
<html>
<adal>
<HTA: application
Légende = "NON"
Scroll = "non"
Showintaskbar = "non"
Innerborder = "no"
ContextMenu = "no"
Border = "Aucun"
Singleinstance = "Oui"
Fenêtre = "maximiser"
>
<Title> 0009.cnblogs.com </Title>
<cript>
vartimer = 100;
VarrandDiv = NewArray (100);
window.onload = function ()
{
pour (vari = 0; i <randdiv.length; i ++)
{
randDiv [i] = document.CreateElement ("div");
randdiv [i] .style.csstext = "Filter: PROGID: dximageTransform.microsoft.alpha (opacité = 50);";
randdiv [i] .style.position = "absolu";
randdiv [i] .style.background = getrandomcolor ();
Document.Body.ApendChild (Randdiv [i]);
}
Amusant();
}
functionfun ()
{
pour (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 ()", temporisateur);
}
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);