class DominClass ''''''''''''''''''''''''''''''''''''''''''''''''' '-----------------------------------------------' ' class DominClass ' ' 域名查询类 ' ' 作者:KingApex ' ' 最后修改时间:2004年9月2日 ' '-----------------------------------------------' ' 公有方法: ' ' 1.setstrDomain ' ' 设置要查询域名的类别字符串用","隔开,如:"com,net" ' ' ' ' 2.setDomainName ' ' 设置域名,如 sina.com ' ' ' ' 3.getresult() ' ' 取得结果,对应strDomain的一个数组true or false ' ' '-----------------------------------------------' ' 用法举例: ' 'set objD = new DominClass ' 'objD.setstrDomain("com,net") ' 'objD.setDomainName("sina") ' 'dim r ' 'r = objD.getresult() ' 'set objD = nothing ' ' ' 'dim dd:dd = ubound(r) ' 'if dd >0 then ' 'for i = 0 to ubound(r) ' 'response.write r(i) ' 'next ' 'else ' 'response.write "错误" ' 'end if ' ' ' ''''''''''''''''''''''''''''''''''''''''''''''''' private Retrieval,strDomain,result,DomainName '初始化 '设置域名列表,号隔开如;"com,net,cn" '设置域名如:sina
'取得结果,对应strDomain的一个数组 dim tempar:tempar = split(strDomain,",") redim result(ubound(tempar)) for i =0 to ubound(tempar) '检测域名是否存在 '''''''''''''''''' Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode '''''''''''''''''''''''' With Retrieval GetURL= bstr(GetURL)
end class |