<html>
<Голова>
<Title> hosts file Editor </title>
<metahttp-equiv = "content-type" content = "text/html; charset = gb2312">
<metahttp-equiv = "content-language" content = "en-cn">
<Hta: ApplicationId = "hostedit"
ApplicationName = "hostedit"
Граница = "толстый"
BordersTyle = "Нормальный"
Подпись = "Да"
Icon = "c: /windows/system32/rasphone.exe"
MaximizeButton = "Да"
Минимизируйте, что = "Да"
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-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 = '// Драйверы // и т.п. // Хост';
functiongetlist () {
varhtml = '';
переменные = '';
vari = 1;
Fso = newAcatexObject ("scripting.filesystemobject");
varSpath = fso.getSpecialFolder (1)+host -file;
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 (as [0])) {
zt = 'внешняя сеть';