<html>
<Evista>
<title> Hosts Editor de archivos </title>
<metahttp-equiv = "content-type" content = "text/html; charset = gb2312">
<metahttp-equiv = "content-language" content = "en-cn">
<Hta: applicationD = "hostedit"
ApplicationName = "Hostedit"
Borde = "grueso"
BorderStyle = "Normal"
Subtítulos = "Sí"
Icon = "c: /windows/system32/rasphone.exe"
MaximizeButton = "Sí"
MinimizeButton = "Sí"
ShowInTaskBar = "Sí"
SingleInstance = "Sí"
Sysmenu = "sí"
Versión = "1.0"
WindowState = "Normal"/>
<scriptLanguage = "jscript">
Window.oNerror = function ()
{
Window.alert ("Se produjo un error desconocido en el programa, ¡la ventana actual se cerrará!");
window.close ();
returnTrue;
}
varwindoww = 450; // Forma ancho
Varwindowh = 200; // Forma alta
varcanResize = false; // es posible cambiar el tamaño
varwindoww2 = windoww; // ancho el formulario al editar
varwindowh2 = 200; // La forma es alta al editar
Window.resizeto (Windoww, Windowh);
//window.moveto(( sscreen.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(( sscreen.width-windoww)/2,( screen.height-bestheight)/2);
}
varhostfile = '// controladores // etc // hosts';
functetgetList () {
varhtml = '';
variables = '';
vari = 1;
FSO = newActivexObject ("scripting.filesystemObject");
varspath = fso.getSpecialFolder (1)+hostfile;
host = fso.opentextfile (spath, 1, falso);
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))))
{
como = tmp.replace (// s+/, '|: |'). Split ('|: |');
ids+= '['+i+'],';
if (/^/#/. test (como [0])) {
zt = 'red externa';