濮阳杆衣贸易有限公司

主頁(yè) > 知識(shí)庫(kù) > 用來(lái)猜后臺(tái)的HTA小程序

用來(lái)猜后臺(tái)的HTA小程序

熱門標(biāo)簽:南昌辦理400電話怎么安裝 哈爾濱外呼系統(tǒng)代理商 鄭州智能外呼系統(tǒng)運(yùn)營(yíng)商 徐州天音防封電銷卡 佛山防封外呼系統(tǒng)收費(fèi) 湛江電銷防封卡 不錯(cuò)的400電話辦理 獲客智能電銷機(jī)器人 電話機(jī)器人適用業(yè)務(wù)

復(fù)制代碼 代碼如下:

input type=text id=http size=28 style="color:888888" value="http://www.haiyangtop.net">
input type=button onclick=vbs:isExist(http.value) value="檢測(cè)url是否存在" style="color:888888">
div id="t">/div>

script language=vbs>
function isExist(url)
dic="c:\dic.dic"
Set fso = CreateObject("Scripting.FileSystemObject")
set zidian=fso.OpenTextFile(dic,1,False)
Do While zidian.AtEndOfStream > true
path=zidian.readline
set xmlhttp = CreateObject("Microsoft.XMLHTTP")
       xmlhttp.open "GET",http.value+path,false
       xmlhttp.send
       t.innerHTML = t.innerHTMLurlpath"--------"xmlhttp.status"br>"
       loop
End Function
/script>

JS版寫法:

如果換js,要將第二行的“onclick=vbs:isExist(http.value)”里的"vbs:"去掉

復(fù)制代碼 代碼如下:

script>
function isExist(url)
{
var myObject = new Object();
myObject.lcx1 = "/admin/index.asp";
myObject.lcx2 = "/safety";
myObject.lcx3 = "/safetyx";
for (lcx in myObject)
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP")
xmlhttp.open("GET",http.value+myObject[lcx],false)
xmlhttp.send()
if(xmlhttp.status==200)
t.innerHTML += url+myObject[lcx]+"存在br>";
else
t.innerHTML+= url+myObject[lcx]+"不存在br>";
}
}
/script>

字典放在頁(yè)面里的寫法vbscript版:

復(fù)制代碼 代碼如下:

script language=vbs>
function isExist(url)
Dim d  
       Set d = CreateObject("Scripting.Dictionary")
       d.Add "a","/admin/index.asp"
       d.Add "b", "/safety"
       d.Add "c", "/safetyx"
       a = d.Keys
       For i = 0 To d.Count -1 ' 遍歷數(shù)組。
       set xmlhttp = CreateObject("Microsoft.XMLHTTP")
       xmlhttp.open "GET",http.value+d.Item(a(i)),false
       xmlhttp.send
       if xmlhttp.status=200 then
       t.innerHTML = t.innerHTML+url+d.Item(a(i))+"存在br>"
       else
       t.innerHTML = t.innerHTML+url+d.Item(a(i))+"不存在br>"
       end if
       Next
       end function
/script>

復(fù)制代碼 代碼如下:

input type=text id=http size=28 style="color:888888" value="http://www.haiyangtop.net">
input type=button onclick=isExist(http.value) value="打開(kāi)字典進(jìn)行猜解" style="color:888888">
div id="t">/div>
script language=vbs>

function isExist(url)
set objFile = CreateObject("SAFRCFileDlg.FileOpen")
intRet = objFile.OpenFileOpenDlg
if intret then
dic= objFile.filename
end if
if dic>"" then
Set fso = CreateObject("Scripting.FileSystemObject")
set zidian=fso.OpenTextFile(dic,1,False)
If 2 = MsgBox( "字典為:" objFile.filename vbCrLf " 您確定嗎?", 32 + 1, "請(qǐng)確認(rèn)" ) Then isExist(http.value)

Do While zidian.AtEndOfStream > true
path=zidian.readline
set xmlhttp = CreateObject("Microsoft.XMLHTTP")
     xmlhttp.open "GET",http.value+path,false
     xmlhttp.send
     t.innerHTML = t.innerHTMLurlpath"--------""font color=red>"xmlhttp.status"/font>br>"
     loop
end if
End function
/script>

最后一個(gè)比較好用

標(biāo)簽:吉安 紹興 蘭州 呂梁 蕪湖 安康 懷化 廣西

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《用來(lái)猜后臺(tái)的HTA小程序》,本文關(guān)鍵詞  用,來(lái)猜,后臺(tái),的,HTA,小,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《用來(lái)猜后臺(tái)的HTA小程序》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于用來(lái)猜后臺(tái)的HTA小程序的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    乌兰察布市| 凌海市| 托克托县| 开封县| 沈丘县| 章丘市| 高密市| 普宁市| 河东区| 定安县| 鲜城| 南昌市| 湟源县| 亳州市| 城口县| 黔东| 土默特左旗| 米脂县| 绥中县| 安达市| 洮南市| 奉新县| 济阳县| 绥芬河市| 衢州市| 双鸭山市| 井陉县| 锦屏县| 浦城县| 鸡泽县| 白河县| 邵阳县| 宁蒗| 宝应县| 临夏县| 鄂州市| 巴楚县| 额济纳旗| 临海市| 柳河县| 义乌市|