<%
on error resume next
PRivate d_exsit
Dim Retrieval
Dim Domain
Dim TakenHTML
Function GetURL(url)
Set Retrieval = Server
With Retrieval
GetURL =
End With
Set Retrieval = Nothing
End Function
Domain = Replace(Request
if Domain="
Response
response
end if
TakenHTML = GetURL(" & Domain)
d_exsit=
if InStr(TakenHTML
Response
else
if InStr(TakenHTML
祝賀您
點擊這裡
<% else %>
<font color="red"><br>很抱歉</font> 您想注冊的域名 <% =Domain %> 已經被注冊了!<p></p>請您換個域名再試</font>
<form method="post" action="search
www
<select name="ext" id=Select
<option value="com" selected>
<option value="net">
<option value="org">
<option value="com
<option value="net
<option value="org
<option value="cc">
<option value="tv">
<option value="biz">
<option value="info">
</select>
<input type="submit" name="Submit" value="查詢" id=Submit
</form>以下是此域名的詳細注冊信息<BR></font>
<table><tr><td><PRE><% =dowith() %></PRE></td></tr></table></font>
<% end if
end if
Function dowith()
Dim lStrURL
Dim pagebefore
Dim pageafter
Dim tempcontent
Dim pagestart
Dim pageend
dim temps
pageafter = "<PRE>"
pagebefore = "</PRE>"
tempcontent = TakenHTML
if d_exsit<>
pagestart = InStr(
If pagestart =
dowith = "<font color=""red"">意外的錯誤
d_exsit =
Exit Function
Else
pagestart = pagestart + Len(pageafter) +
pageend = InStr(pagestart
If pageend =
dowith = "<font color=""red"">意外的錯誤!</font>"
d_exsit =
Exit Function
Else
pageend = pageend
tempcontent = Mid(tempcontent
End If
End If
Set pageregexp = New RegExp
pageregexp
pageregexp
tempcontent = pageregexp
Set pageregexp = Nothing
dowith = tempcontent
End If
End Function
%>
From:http://tw.wingwit.com/Article/program/net/201311/14459.html