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

首頁 > 編程 > ASP > 正文

asp alexa查詢小偷程序

2024-05-04 11:00:45
字體:
來源:轉載
供稿:網友
<%
'為了支持原創,請保留該處注釋,謝謝!
'作者:草上飛
'獲取主域名
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

'==================================================
'函數名:ScriptHtml
'作  用:過濾html標記
'參  數:ConStr ------ 要過濾的字符串
'         TagName ------要過濾的標簽
'         FType 1表示過濾左邊標簽  2表示過濾左右標簽及中間的值  3表示過濾左邊標簽和右邊標簽,保留內容。
'==================================================
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,"")
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 临海市| 思南县| 遵义市| 西乌| 剑川县| 从化市| 太仓市| 平度市| 萨迦县| 五寨县| 涡阳县| 厦门市| 巴林右旗| 大丰市| 扎囊县| 电白县| 分宜县| 南和县| 宜良县| 淳安县| 且末县| 镇康县| 呼图壁县| 耿马| 大埔区| 大洼县| 永和县| 斗六市| 沁源县| 沽源县| 阿拉善右旗| 措美县| 高要市| 普陀区| 北川| 岢岚县| 高尔夫| 新乡县| 班玛县| 镇巴县| 江门市|