国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 編程 > ASP > 正文

asp alexa查詢(xún)小偷程序

2024-05-04 10:57:28
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
<%
'為了支持原創(chuàng),請(qǐng)保留該處注釋?zhuān)x謝!
'作者:草上飛
'獲取主域名
Function getDomainUrl(url)
    tempurl=replace(url,"http://","")
    if instr(tempurl,"/")>0 then
        tempurl=left(tempurl,instr(tempurl,"/")-1)
    end If
    getDomainurl=tempurl
End Function


Function GetHttpPage(HttpUrl)
   If IsNull(HttpUrl)=True Or Len(HttpUrl)<18 Or HttpUrl="$False$" Then
      GetHttpPage="$False$"
      Exit Function
   End If
   Dim Http
   Set Http=server.createobject("MSXML2.XMLHTTP")
   Http.open "GET",HttpUrl,False
   Http.Send()
   If Http.Readystate<>4 then
      Set Http=Nothing 
      GetHttpPage="$False$"
      Exit function
   End if
   GetHTTPPage=Http.responseText
   Set Http=Nothing
   If Err.number<>0 then
      Err.Clear
   End If
End Function

'==================================================
'函數(shù)名:ScriptHtml
'作  用:過(guò)濾html標(biāo)記
'參  數(shù):ConStr ------ 要過(guò)濾的字符串
'         TagName ------要過(guò)濾的標(biāo)簽
'         FType 1表示過(guò)濾左邊標(biāo)簽  2表示過(guò)濾左右標(biāo)簽及中間的值  3表示過(guò)濾左邊標(biāo)簽和右邊標(biāo)簽,保留內(nèi)容。
'==================================================
Function ScriptHtml(Byval ConStr,TagName,FType,includestr)
    Dim Re
    Set Re=new RegExp
    Re.IgnoreCase =true
    Re.Global=True
    Select Case FType
    Case 1
       Re.Pattern="<" & TagName & "([^>])*("&includestr&"){1,}([^>])*>"
       ConStr=Re.Replace(ConStr,"")
    Case 2
       Re.Pattern="<" & TagName & "([^>])*("&includestr&"){1,}([^>])*>.*?</" & TagName & "([^>])*>"
       'response.write constr&"<br>"
       ConStr=Re.Replace(ConStr,"")
發(fā)表評(píng)論 共有條評(píng)論
用戶(hù)名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 汨罗市| 建水县| 瑞安市| 桦甸市| 大理市| 靖安县| 梧州市| 德惠市| 罗定市| 成安县| 阳城县| 绩溪县| 玉门市| 新竹市| 延长县| 若尔盖县| 淮南市| 东海县| 克拉玛依市| 汨罗市| 神池县| 商丘市| 读书| 博兴县| 青阳县| 凤冈县| 沾益县| 安平县| 永春县| 绥棱县| 高邑县| 宁城县| 呼和浩特市| 鄂托克前旗| 乌拉特后旗| 黄大仙区| 大连市| 望都县| 蒙阴县| 牟定县| 清新县|