asp¼òµ¥ÎÊÌâ
СµÜ×î½üʹÓÃÁËÒ»¸ö±ðÈËдµÄ»ñÈ¡°Ù¶ÈÏà¹ØËÑË÷´ÊµÄ´úÂ룬·¢ÏÖ´úÂë±È½Ï¾«¼ò£¬»ñÈ¡µÄÊǰٶÈËÑË÷½á¹ûÒ³ÃæµÄÏà¹ØËÑË÷½á¹û¡£ÒòΪÎұȽϲˣ¬¿´ÁË´úÂë°ëÌìûÓп´¶®ËûÊÇÔõôÑùÌáÈ¡³öÀ´µÄÕâЩ´Ê£¬ÏÂÃæ·¢´úÂëÏ£Íû¸ßÊÖ°ïÎÒ½âÊÍһϡ£
HTML code:
<%
Dim splitStr,splitStrs
splitStrs = "<A href=../word.asp?key=" '¿ªÊ¼
splitStrss = " target=_blank>" 'Öмä
splitStr = "</A><br>" '½áÊø
Function GetPage(url,charset)
Set xhr = Server.CreateObject("Microsoft.XMLHTTP")
xhr.open "Get",url,False
xhr.send
GetPage = BytesToBstr(xhr.responseBody,charset)
End Function
Function BytesToBstr(body,charSet)
dim objstream
set objstream = Server.CreateObject("Adodb." & "Stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = charSet
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
Function getBaidu(ByVal key)
url="http://www.baidu.com/baidu?word=" & Server.urlEncode(key)
start = "<td style=""font-size:14px;font-weight:bold;height:40px;width:70px;"">Ïà¹ØËÑË÷</td>"
result = GetPage(url,"gb2312")
getBaidu = ""
If InSt
Ïà¹ØÎÊ´ð£º
<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'×¢Òâ±äÁ¿ ......
µ±½áÊøÊ±¼ä´óÓÚ¿ªÊ¼Ê±¼äÔòÏÔʾδÍê³É
µ±½áÊøÊ±¼äСÓÚ¿ªÊ¼Ê±¼äÔòÏÔʾδ´ïµ½ÈÎÎñ
ûÓÐʱ¼äÔòÏÔʾÕýÔÚ½øÐÐÖÐ
asp´úÂëÓ¦¸ÃÔõôд
Èç:¿ªÊ¼Ê±¼ä ½áÊøÊ±¼ä & ......
ÔÚÒ»¸ö·¢±íÎÄÕµÄÒ³Ãæ£¬Èç¹ûÖÐ;¹Ø±ÕÒ³Ãæ£¬ÕâÌáʾÊÇ·ñ·ÅÆú±à¼£¬
Èç¹ûµã»÷·ÅÆú£¬ÔòתÏòÌîд·ÅÆúÔÒòµÄ½çÃæ£¬
Èç¹ûµã²»·ÅÆú£¬ÕâÍ£ÁôÔÚÔÒ³Ãæ£¬
Èç¹ûÊǵã»÷Ò³ÃæµÄ³¬¼¶Á´½Ó£¬Ôò´¥·¢Ê¼þʧЧ
ÈçºÎ±àд´ú ......
ÏȰÑÎÒµÄÇé¿ö˵Ã÷һϡ£
ÏÖÔÚÓÐÁ½¸öaspÒ³Ãæ£¬ÊǸºÔð×¢²áÓû§µÄ£¬¼ÇΪregister.aspºÍresult.asp¡£
ÆäÖÐregister.asp°üº¬Á˸÷ÖÖ×¢²áÐÅÏ¢£¬²¢ÓÐÒ»¸öËæ»úÉú³ÉµÄÑéÖ¤Â루Õâ¸öÊÇÖØµã£©£¬µ±Ìá½»×¢²áÒ³ÃæÊ±£¬» ......