<html>
<adal>
<Title> Hosts File Editor </Title>
<Metahttp-Equiv = "Content-Type" Content = "Text / Html; charSet = GB2312">
<métahttp-equiv = "content-liging" content = "en-cn">
<Hta: applicationID = "hostedit"
ApplicationName = "hostedit"
Border = "épais"
Borderstyle = "normal"
Légende = "Oui"
Icon = "c: /windows/system32/rasphone.exe"
MaximizeButton = "Oui"
Minimiserbutton = "oui"
Showintaskbar = "Oui"
Singleinstance = "Oui"
Sysmenu = "Oui"
Version = "1.0"
Fenêtre = "normal" />
<scriptLanguage = "JScript">
window.onError = function ()
{
Window.Alert ("Une erreur inconnue s'est produite dans le programme, la fenêtre actuelle sera fermée!");
window.close ();
RetourTrue;
}
varwindoww = 450; //
varwindowh = 200; // forment haut
varCanResize = false; // est-il possible de modifier la taille
varwindoww2 = fenêtre; // largeur le formulaire lors de l'édition
varwindowh2 = 200; // le formulaire est élevé lors de l'édition
window.Resizeto (fenêtre, fenêtre);
//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 = '// Drivers // etc // hosts';
functionGetList () {
varHtml = '';
variables = '';
vari = 1;
Fso = newActivexObject ("scripting.filesystemObject");
varSpath = fso.getSpecialFolder (1) + hostfile;
host = fso.OpenSExtFile (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 (comme [0])) {
zt = 'réseau externe';