欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP實現(xiàn)頭像圖像隨機變換

 更新時間:2007年02月07日 00:00:00   作者:  
復(fù)制代碼 代碼如下:

<%On Error Resume Next%>
<%
dim p, ppic, id, body, myCache
randomize
p=Int((3*rnd)+1)
id= Request.QueryString("id")
HttpUrl="http://sms.2e7.net/可愛卡通0"&p&".gif"
  Set myCache = new cache
  myCache.name = "picindex"&id
  If myCache.valid Then
          body = myCache.value
  Else
          body = GetWebData(HttpUrl)
          myCache.add body,dateadd("d",1,now)
  End If

  If Err.Number = 0 Then
        Response.CharSet = "UTF-8"
        Response.ContentType = "application/octet-stream"
        Response.BinaryWrite body
        Response.Flush
  Else
        Wscript.Echo Err.Description
  End if

'取得數(shù)據(jù)
Public Function GetWebData(ByVal strid)
Dim cidpath
cidpath = Mid(strid,1,Instr(8,strid,"/"))
Dim Retrieval
Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", strid, False,"",""
.setRequestHeader "Referer", cidpath
.Send
GetWebData =.ResponseBody
End With
Set Retrieval = Nothing
End Function
%>


相關(guān)文章

最新評論