?? whois.asp
字號:
<style type="text/css">
<!--
.STYLE1 {
color: #FFFFFF;
font-weight: bold;
}
body,td,th {
font-size: 12px;
color: #FFFFFF;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/index_09.gif);
}
-->
</style>
</head>
<body>
<script language="javascript">
function CheckEmail(item)
{
var etext=form1.domain.value;
var elen=form1.domain.value.length;
var i;
var aa;
//增加minghui.com sinous.com cbs.com cdn.com 提示,以后問題解決了還要去掉
var domainStr;
var domainStrV;
var keywz;
if (elen>60)
{
alert("請不要輸入超過60個字符!");
return false;
}
if(etext=="")
{
alert("請輸入要查詢的域名!");
return false;
}
for (i=0;i<=elen-1;i++)
{
aa=etext.charAt(i)
if ((aa==' '))
{
alert("域名不能有空格!");
return false;
}
if ((aa=='.'))
{
alert("不能直接輸入帶后綴的域名,只要輸入想注冊域名的名稱即可查詢!");
return false;
}
}
return true;
}
</script>
<%OutMsg="請輸入您需要查詢的域名"%>
<br>
<table width="701" border="0" align="center" cellpadding="2" cellspacing="1" background="images/index_09.gif">
<tr>
<td width="30%" height="32" background="images/index_09.gif"><div align="left">
<table width="96%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr>
<td background="images/index_09.gif" bgcolor="#999999"><%=OutMsg%>
<%
On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"GB2312")
End function
Function bstr(vIn)
Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bstr = strReturn
End Function
Function GetURL(url)
Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, false
.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
.Send
GetURL = .ResponseBody
End With
Set Retrieval = Nothing
GetURL=bstr(GetURL)
End Function
%>
<%
domain= Request.QueryString("domain")
dtype=request.QueryString("type")
if domain<>"" then
if dtype<>"" then
TakenHTML = GetURL("http://panda.www.net.cn/cgi-bin/Whois.cgi?domain="&domain&"&"&dtype&"=yes&referer=http://www.net.cn/static/domain/")
startpoint=instr(TakenHTML,"<!-- start -->")
endpoint=instr(TakenHTML,"<!-- end -->")
TakenHTML =mid(TakenHTML,startpoint,endpoint-startpoint)
TakenHTML =replace(TakenHTML,"萬網","<a href='http://www.35cen.cn'><font color=#ff000>商務世紀</font></a>")
%>
<%
'判斷域名是否被注冊
if InStr(TakenHTML,"No entries") > 1 then
Response.Write Domain & "出錯了,請返回!<br><br>"
else
if (InStr(TakenHTML,"no match record") or InStr(TakenHTML,"No match") or InStr(TakenHTML,"NOT FOUND") or InStr(TakenHTML,"Not found") or InStr(TakenHTML,"no matching record"))> 1 then %>
<font color="red" style="font-size:16px"><b>祝賀您 這個域名可以注冊:<br>
</b></font>您想注冊的域名
<b>[
<% =Domain %>
.<%=dtype%> ]還沒有被注冊</b><a href="reg.asp">開始注冊</a><br>
<% else %>
<font color="red" style="font-size:16px"><b>對不起:</b></font>您想注冊的域名
<b>[
<% =Domain %>
.<%=dtype%> ]已經被注冊了! <a href="yuming.asp">重新查詢<br>
</a></b>請您換個域名再試;
<%end if%>
<%end if%>
<!---判斷域名是否被注冊----->
<%
response.Write(TakenHTML)
else
OutMsg="請選擇域名類型!"
end if
else
OutMsg="您輸入的域名不能為空!"
end if
%>
</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="4" background="images/index_09.gif"><form name="form1" method="get" action="yuming.asp" onSubmit="return CheckEmail(this.domain);">
<table width="96%" border=0 align="center" cellpadding="2" cellspacing="1" background="images/index_09.gif">
<tr>
<td height="30" colspan="4" background="image/domian_bg.jpg"> <div align="center">
<input name="domain" class=whois_box value="<%=rs(myform)%>" size="23" maxlength=63>
<input name="Submit" type="submit" value="查詢" align=absMiddle width=38 border=0>
</div></td>
</tr>
<tbody>
<tr bgcolor="#FFFFFF">
<td width="25%" background="images/index_09.gif"> <input name="type" type="radio" value="com" checked>
.com</td>
<td width="25%" background="images/index_09.gif" bgcolor="#FFFFFF"> <input type="radio" name="type" value="net">
.net </td>
<td width="25%" background="images/index_09.gif" bgcolor="#FFFFFF"> <input type="radio" name="type" value="org">
.org </td>
<td width="25%" background="images/index_09.gif" bgcolor="#FFFFFF"> <input type="radio" name="type" value="cn">
.cn </td>
</tr>
<tr bgcolor="#f3f3f3">
<td width="25%" height="19" background="images/index_09.gif" bgcolor="#f3f3f3"> <input type="radio" name="type" value="comcn">
.com.cn</td>
<td width="25%" background="images/index_09.gif" bgcolor="#f3f3f3"> <input type="radio" name="type" value="netcn">
.net.cn</td>
<td width="25%" height="19" background="images/index_09.gif"> <input type="radio" name="type" value="orgcn">
.org.cn</td>
<td width="25%" height="19" background="images/index_09.gif" bgcolor="#999999"> <input type="radio" name="type" value="govcn">
.gov.cn</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="25%" background="images/index_09.gif" bgcolor="#FFFFFF"> <input type="radio" name="type" value="info">
.info </td>
<td width="25%" background="images/index_09.gif"> <input type="radio" name="type" value="biz">
.biz </td>
<td width="25%" background="images/index_09.gif" bgcolor="#999999"> <input type="radio" name="type" value="tv">
.tv </td>
<td width="25%" background="images/index_09.gif" bgcolor="#999999"> <input type="radio" name="type" value="cc">
.cc </td>
</tr>
</tbody>
</table>
</form>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -