HTA: htmlapplications
HTA เป็นโปรแกรมปฏิบัติการสำหรับ HTML มันง่ายมากที่จะทำ เพียงเปลี่ยนไฟล์ *.htm เป็น *.hta
อย่างไรก็ตาม HTA มีแท็กที่เป็นเอกลักษณ์ของตัวเอง <HTA> และสามารถตั้งค่าคุณสมบัติเพื่อให้ได้ผลลัพธ์ที่ดีมาก
HTA เป็นตัวเลือกที่ยอดเยี่ยมสำหรับการสร้างโปรแกรมมินิ
นี่คือตัวอย่างที่เขียนเมื่อไม่กี่วันที่ผ่านมาเมื่อ บริษัท เบื่อ
รหัส:
รหัสมีดังนี้:
<html>
<head>
<HTA: แอปพลิเคชัน
คำบรรยายภาพ = "ไม่"
Scroll = "ไม่"
showintaskBar = "ไม่"
innerBorder = "ไม่"
ContextMenu = "ไม่"
ชายแดน = "ไม่มี"
singleinstance = "ใช่"
WindowState = "เพิ่มสูงสุด"
-
<title> 0009.cnblogs.com </title>
<script>
vartimer = 100;
Varranddiv = Newarray (100);
window.onload = function ()
-
สำหรับ (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 ()
-
สำหรับ (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);