<script language="vbscript"> Sub submit1_onmouseup '當點擊“查詢”按鈕時觸發; Dim objXML, objXSL, objFSO,strFile, strFileName, strXSL,strURL,TheForm Set TheForm = Document.wordfind window.status="正在檢索資料···" strURL="dns.asp" Set objXML = CreateObject("Microsoft.XMLHTTP") '建立MS的XMLHTTP組件; stra = "submit=submit&fqdn="&TheForm.words.value objXML.Open "post",strURL,false '採用Post提交方式; objXML.setrequestheader "content-length",len(stra) objXML.setrequestheader "content-type","application/x-www-form-urlencoded" objXML.send stra ' 發送資訊 xmlGet = objXML.responseText '稍等片刻後,得到伺服器端傳回來的結果; if instr(1,xmlGet,"This is not a valid .com .net .org .info or .biz domain name",1)<1 and len(trim(xmlGet))>100 then if instr(1,xmlGet,"This domain is available",1)<1 then if instr(1,xmlGet,"Registrant:",1) then strFind1 =instr(1,xmlGet,"Registrant:",1) else strFind1 = instr(1,xmlGet,"<pre><FONT face=""Verdana, Arial",1)+65 |