<html>
<kopf>
<title> Hosts Datei -Editor </title>
<metahttp-äquiv = "content-type" content = "text/html; charSet = gb2312">
<metahttp-äquiv = "content-Sprache" content = "en-cn">
<Hta: applicationID = "hostedit"
ApplicationName = "hostedit"
Border = "dick"
BORDERSYLE = "Normal"
Caption = "Ja"
Icon = "c: /windows/system32/rasphone.exe"
MaximizeButton = "Ja"
MinimizeButton = "Ja"
ShowIntaskbar = "Ja"
SingleInInstance = "Ja"
Sysmenu = "Ja"
Version = "1.0"
WindowState = "normal"/>
<scriptuanguage = "jscript">
window.onError = function ()
{
window.alert ("Ein unbekannter Fehler im Programm ist das aktuelle Fenster geschlossen!");
Fenster.CLOSE ();
returnTrue;
}
varWindoww = 450; // Formbreite
varWindowh = 200; // Form hoch
varcanResize = false; // Ist es möglich, die Größe zu ändern
varWindoww2 = windowW; // Breite des Formulars beim Bearbeiten
varWindowh2 = 200; // Das Formular ist beim Bearbeiten hoch
Fenster.Resizeto (Fenster, Fenster);
//window.moveto((Screen.width-windoww)/2,( Screen.Height-Windowh)/2);
window.onResize = function () {if (! canResize) Fenster.
functionInit ()
{
varui_table = document.getElementById ('ui_table');
varbästheighth = 70+ui_table.scrollHeight;
if (BEBHEITHELT> SCREED.Height) BESTHEIGHT = SCREED.Height;
Fenster.Resizeto (Fenster, BestHeight);
//window.moveto((Screen.width-windoww)/2,(creen.height-besthight)/2);
}
varHostfile = '// treiber // etc // hosts';
functionGetList () {
varhtml = '';
Variablen = '';
vari = 1;
Fso = newActActXObject ("scripting.FilesSystemObject");
varspath = fso.getSpecialFolder (1)+Hostfile;
Host = fso.opentextfile (Spath, 1, falsch);
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 = 'externes Netzwerk';