直播中
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="75%" border="1" align="center" height="20" cellpadding="0" cellspacing="1"
bgcolor="#66CC99" bordercolor="#FFFFFF">
<tr>
<td height="4">
<div align="center"><font color="#000000" size="2" face="Arial">ASPCN.COM</font><font
color="#000000" size="3" face="Arial"></font><b><font color="#000000" size="3" face="Arial">
</font><font color="#000000" size="3" face="仿宋_GB2312">超級(jí)搜索引擎</font></b></div>
</td>
</tr>
<tr bordercolor="#66CC99">
<td height="21">請(qǐng)選擇下面的搜索引擎:(請(qǐng)注意:本搜索引擎只是適合于<font color="#ffffff">網(wǎng)頁(yè)搜索
</font>)</td>
</tr>
<tr bordercolor="#FFFFFF" align="center" valign="top">
<td height="20">
<form method="post" action="http.asp">
<table width="96%" border="0" height="21" align="center">
<tr>
<td height="10" width="31%">
<div align="right">請(qǐng)輸入你要搜索的關(guān)鍵字: </div>
</td>
<td height="10" width="69%">
<input type="text" name="keyword" class="test">
</td>
</tr>
<tr>
<td height="2" width="31%">
<div align="right">請(qǐng)選擇你使用的搜索引擎: </div>
</td>
<td height="2" width="69%">
<input type="checkbox" name="yeah" value="yeah">
Yeah
<input type="checkbox" name="yahoo" value="yahoo">
Yahoo
<input type="checkbox" name="sina" value="sina">
Sina
<input type="checkbox" name="sohu" value="sohu">
Sohu
<input type="checkbox" name="goyoyo" value="goyoyo">
Goyoyo</td>
</tr>
<tr>
<td height="2" colspan="2">
<div align="right">
<input type="submit" name="Submit" value="讓我們開(kāi)始吧" class="test1">
</div>
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr bordercolor="#FFFFFF">
<td height="20">備注:由于使用了多個(gè)搜索引擎檢索,所以系統(tǒng)輸出的時(shí)間較長(zhǎng),請(qǐng)耐心等待... ...</td>
</tr>
<tr bordercolor="#FFFFFF">
<td height="20">
<div align="center">建議使用 IE 5.x 800*600訪(fǎng)問(wèn) ASPCN.COM 版權(quán)保留(2000-2001) <font
size="2">©</font></div>
</td>
</tr>
</table>
</body>
</html>
<!--
頁(yè)面代碼顯示結(jié)束
數(shù)據(jù)處理代碼顯示
-->
<%else
Server.ScriptTimeout = 100'設(shè)置腳本時(shí)間,由于系統(tǒng)輸出時(shí)間較長(zhǎng)所以必須修改腳本代碼執(zhí)行時(shí)間
Set http = Server.CreateObject("AspHTTP.Conn")'連結(jié)組件
keyword=request.form("keyword")'取得搜索關(guān)鍵字
if request.form("yeah")="yeah" then'判斷是否選擇使用yeah搜索引擎
http.Url = "http://search.163.com/cgi-bin/search/engine/search.fcgi?key="&keyword'處理搜索地址
http.RequestMethod = "GET"'設(shè)置取得數(shù)據(jù)方式"GET,取得數(shù)據(jù)"
response.write http.geturl'輸出搜索結(jié)果
end if
'以下代碼請(qǐng)參考上例的說(shuō)明,恕不羅嗦
'使用yahoo
if request.form("yahoo")="yahoo" then
http.Url = "http://google.yahoo.com/bin/query_gb?p="&keyword
http.RequestMethod = "GET"
response.write http.geturl
end if
'使用sohu
if request.form("sohu")="sohu" then
http.Url ="http://search.sohu.com/cgi-bin/search_main.cgi?
txt_keyword="&keyword&"&page_index=0&fuzzy=0&catagory=main"
http.RequestMethod = "GET"
response.write http.geturl
end if
'使用goyoyo
if request.form("goyoyo")="goyoyo" then
http.Url ="http://www.goyoyo.com.cn/gyy/query?dbs=guidedbs&code=GB&query="&keyword
http.RequestMethod = "GET"
response.write http.geturl
end if
set http=nothing
end if
'提交數(shù)據(jù)處理結(jié)束
%>
來(lái)自于http://www.aspcn.com