input type=text id=http size=28 style="color:888888" value="http://www.haiyangtop.net">
input type=button onclick=vbs:isExist(http.value) value="檢測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>
input type=text id=http size=28 style="color:888888" value="http://www.haiyangtop.net">
input type=button onclick=isExist(http.value) value="打開字典進行猜解" 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, "請確認" ) 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>