<Html>
<head>
<title> Hosts File Editor </iteme>
<metahttp-equiv = "konten-tipe" content = "text/html; charset = gb2312">
<metahttp-equiv = "konten-bahasa" konten = "en-cn">
<Hta: applicationId = "hostedit"
ApplicationName = "HostEdit"
Border = "tebal"
Borderstyle = "Normal"
Keterangan = "Ya"
Ikon = "c: /windows/system32/rasphone.exe"
MaximizeButton = "Ya"
MinimizeButton = "Ya"
ShowInkBar = "ya"
SingleInstance = "Ya"
Sysmenu = "ya"
Versi = "1.0"
WindowState = "Normal"/>
<scriptLanguage = "jscript">
window.onError = function ()
{
window.alert ("Terjadi kesalahan yang tidak diketahui dalam program, jendela saat ini akan ditutup!");
window.close ();
kembali;
}
varwindoww = 450; // Lebar bentuk
varwindowh = 200; // bentuk tinggi
varcanresize = false; // Apakah mungkin untuk mengubah ukuran
varwindoww2 = windoww; // lebar formulir saat mengedit
varwindowh2 = 200; // formulirnya tinggi saat mengedit
window.Resizeto (windoww, windowh);
//window.moveto((screen.width-windoww)/2,(screen.height-windowh)/2);
window.onresize = function () {if (! 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-windoww)/2,(screen.height-bestheight)/2);
}
varhostfile = '// driver // etc // hosts';
functionGetList () {
varhtml = '';
variabel = '';
vari = 1;
Fso = newActivexObject ("Scripting.filesystemObject");
varspath = fso.getSpecialFolder (1)+hostfile;
host = fso.opentextFile (spath, 1, false);
while (! 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 | info | biz | cc | tv | gov | mobi | name | cn | en | us | hk | tw))+) $/. test (tmp)))))
{
as = tmp.replace (// s+/, '|: |'). split ('|: |');
ids+= '['+i+'],';
if (/^/#/. test (sebagai [0])) {
zt = 'jaringan eksternal';