บันทึกเป็นไฟล์ hta เพียงแค่
รหัสมีดังนี้:
<html>
<head>
<title> เครื่องมือค้นหาการเข้ารหัสแบบอักษร WUBI </title>
<metahttp-equiv = "content-type" content = "text/html; charset = gb2312"/>
<HTA: แอปพลิเคชัน
MaximizeButton = "ไม่"
icon = "http://www.w3cg.net/wubi/wb.ico"
id = "wubiapp"
singleinstance = "ใช่"
ContextMenu = "ใช่"
sysmenu = "ใช่"
WindowState = "ปกติ"
เส้นขอบ = "บาง"
minimizeButton = "ใช่"
ApplicationName = ""
เวอร์ชัน = "1.0"
innerBorder = "ไม่"
คำบรรยายภาพ = "ใช่"
showintaskBar = "ไม่"
-
<styleType = "text/css">
-
ร่างกาย {พื้นหลัง:#d4d0c8;}
*{Font-Family: Arial, Sans-Serif; Font-Size: 9pt; Color:#333;}
#Main {ความกว้าง: 100%; ความสูง: 100%;}
Textarea {line-height: 130%;}
A: LINK, A: เยี่ยมชม {การตกแต่งข้อความ: ไม่มี;}
-
</style>
<scriptLanguage = "JavaScript">
-
varurl = "http://www.w3cg.net/wubi/";
VARBTV1 = "คุณสามารถเลือกฟังก์ชั่นที่คุณต้องการได้โดยการเปลี่ยนกล่องรายการแบบดรอปดาวน์";
varbtv2 = "ขอบคุณสำหรับการแบ่งปันคุณสามารถคลิกที่นี่เพื่อส่งข้อมูลการเข้ารหัสอักขระจีนเหล่านี้";
varbtv3 = "หากคุณแน่ใจว่าคุณได้เขียนข้อความโปรดคลิกที่นี่เพื่อส่งไปยังผู้เขียน";
varbtv4 = "ส่งข้อมูลไปยังเซิร์ฟเวอร์โปรดรอ .... ";
varxmlhttp;
พยายาม{
xmlhttp = newActivexobject ("microsoft.xmlhttp");
-
จับ (e) {
การแจ้งเตือน ("ขออภัยคุณไม่สามารถสร้างวัตถุระบบได้โปรดตรวจสอบการตั้งค่าระบบของคุณ");
xmlhttp = false;
-
functiontrim (str) {
str = str.replace (/^/s*/, "");
str = str.replace (// s*$/, "");
returnstr;
-
functionwindow.onload () {
Varawidth, Aheight;
Varswidth, Sheight;
Awidth = 600;
Aheight = 300;
swidth = screen.width;
show = screen.height;
Window.resizeto (Awidth, Aheight);