<html>
<head>
<title> يستضيف محرر الملفات </title>
<metahttp-equiv = "content-type" content = "text/html ؛ charset = gb2312">
<metahttp-equiv = "content-language" content = "en-cn">
<hta: applicationId = "Hostedit"
ApplicationName = "Hostedit"
الحدود = "سميكة"
BorderStyle = "Normal"
Caption = "نعم"
Icon = "C: /Windows/system32/rasphone.exe"
MailasizedButton = "نعم"
mailsizeButton = "نعم"
ShowIntaskBar = "نعم"
SingleInstance = "نعم"
sysmenu = "نعم"
الإصدار = "1.0"
WindowState = "Normal"/>
<scriptLanguage = "jscript">
window.onerror = function ()
{
Window.Alert ("حدث خطأ غير معروف في البرنامج ، سيتم إغلاق النافذة الحالية!") ؛
window.close () ؛
عودة
}
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) ؛}
وظيفة ()
{
varui_table = document.getElementById ('ui_table') ؛
varbestheight = 70+ui_table.scrollheight ؛
if (bestheight> screen.hight) bestheight = screen.hight ؛
Window.Resizeto (Windoww ، Bestheight) ؛
//window.moveto((SCREEN.WIDTH-Windoww)/2 ،(SCREEN.HEIGHT-BESTHEIGHT)/2) ؛
}
varhostfile = '// drivers // etc // hosts' ؛
FunctionGetList () {
varhtml = '' ؛
المتغيرات = '' ؛
vari = 1 ؛
fso = newactivexObject ("scripting.filesystemObject") ؛
varspath = fso.getSpecialfolder (1)+HostFile ؛
مضيف = fso.opentextFile (Spath ، 1 ، false) ؛
بينما (! host.atendofstream) {
TMP = Host.ReadLine () ؛
if (/^#؟/d {1،3} /./ d {1،3}/. (com | net | org | edu | info | biz | cc | tv | gov | mobi | name | cn | en | us | tw))+) $/.
{
as = tmp.replace (// s+/، '|: |'). split ('|: |') ؛
ids+= '['+i+'] ،' ؛
if (/^/#/. test (as [0])) {
ZT = 'الشبكة الخارجية' ؛