乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      一段通過xml來遠(yuǎn)程抓娶圖片的代碼

       duduwolf 2005-08-23

      <%
      ‘函數(shù)1調(diào)用XSMXL2.XMLHTTP來進(jìn)行遠(yuǎn)程抓取
      function getHTTPPage(url)
      on error resume next
      dim http
      set http=server.createobject("MSXML2.XMLHTTP")‘使用xmlhttp的方法來獲得圖片的內(nèi)容
      Http.open "GET",url,false
      Http.send()
      if Http.readystate<>4 then
      exit function
      end if
      getHTTPPage=Http.responseBody
      set http=nothing
      if err.number<>0 then err.Clear
      end function
      ‘函數(shù)2 對數(shù)據(jù)進(jìn)行保存
      function img(from,tofile)
      dim geturl,objStream,imgs
      geturl=trim(from)
      imgs=gethttppage(geturl)
      Set objStream = Server.CreateObject("ADODB.Stream")
      objStream.Type =1
      objStream.Open
      objstream.write imgs
      objstream.SaveToFile server.mappath(tofile),2
      objstream.Close()
      set objstream=nothing
      end function
      %>
      <%=img ("http://stock.jrj.com.cn/htmdata/gifindex/Sh_000001.png","sh1.png")%>
      <img src="Sh1.png">
      <%=img ("http://stock.jrj.com.cn/htmdata/gifindex/sz_399001.png","sh2.png")%>
      <img src="Sh2.png">
      <%=img ("http://business.sohu.com/new_world_index.html","gjgshq.html")%>
      <iframe name="a" scrolling="auto" frameborder="0" src="gjgshq.html" width="160" height="140"></iframe>

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多