<html>
<head>
<title> โฮสต์ตัวแก้ไขไฟล์ </title>
<metahttp-equiv = "content-type" content = "text/html; charset = gb2312">>
<metahttp-equiv = "เนื้อหาภาษา" content = "en-cn">
<HTA: ApplicationId = "HostEdit"
ApplicationName = "HostEdit"
ชายแดน = "หนา"
Borderstyle = "ปกติ"
คำบรรยายภาพ = "ใช่"
icon = "c: /windows/system32/rasphone.exe"
MaximizeButton = "ใช่"
minimizeButton = "ใช่"
showintaskBar = "ใช่"
singleinstance = "ใช่"
sysmenu = "ใช่"
เวอร์ชัน = "1.0"
WindowState = "ปกติ"/>
<scriptLanguage = "jscript">
window.onerror = function ()
-
window.alert ("เกิดข้อผิดพลาดที่ไม่รู้จักเกิดขึ้นในโปรแกรมหน้าต่างปัจจุบันจะถูกปิด!");
window.close ();
returntrue;
-
varwindoww = 450; // ความกว้างของฟอร์ม
varwindowh = 200; // ฟอร์มสูง
varcanResize = false; // เป็นไปได้ไหมที่จะเปลี่ยนขนาด
varwindoww2 = windoww; // ความกว้างของแบบฟอร์มเมื่อแก้ไข
varwindowh2 = 200; // แบบฟอร์มสูงเมื่อแก้ไข
window.resizeto (windoww, windowh);
//window.moveto(( Screen.width-windowwwwe)/2,( screen.height-windowh)/2);
window.onresize = function () {ถ้า (! canresize) window.resizeto (windoww, windowh);}
functionInit ()
-
varui_table = document.getElementById ('ui_table');
varbestheight = 70+ui_table.scrollheight;
if (bestheight> screen.height) bestheight = screen.height;
window.resizeto (windoww, bestheight);
//window.moveto(( Screen.width-windowwwwe)/2,( screen.height-bestheight)/2);
-
varhostfile = '// ไดรเวอร์ // etc // โฮสต์';
functiongetList () {
varhtml = '';
ตัวแปร = '';
vari = 1;
FSO = newActiveXObject ("Scripting.FilesYstemObject");
varspath = fso.getSpecialFolder (1)+hostfile;
host = fso.opentextfile (spath, 1, false);
ในขณะที่ (! host.atendofstream) {
tmp = host.readline ();
if (/^#?/d {1,3} /./ d {1,3} /./ d {1,3} /./ d {1,3}/s+([a-za-z0-9/-]+/. [a-za-z0-9/-]+(/ (com | net | org | edu | ข้อมูล | biz | cc | TV | gov | mobi | ชื่อ | cn | en | us | hk | tw))+) $/. ทดสอบ (tmp))))
-
AS = tmp.replace (// s+/, '|: |'). แยก ('|: |');
ids+= '['+i+'],';
if (/^/#/. ทดสอบ (เป็น [0])) {
zt = 'เครือข่ายภายนอก';