首页  ·  知识 ·  编程语言
用Asp+XmlHttp实现RssReader功能
佚名  http://www.phpup.com/asparticle/show-article-2696/  ASP  编辑:dezai  图片来源:网络
stylebody form* {font:12px tahoma;140%;color:#000000}.title .time a /stylescript t





RSS资源:" onfocus=select()>   双击鼠标可以关闭摘要,只显示标题




<%
If(request("RssFeed")="") Then
url="/rss2.asp"
else
url=request("RssFeed")
End If

Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", url, False
xml.Send

Set xmlDom = server.createObject("microsoft.xmldom")
xmlDom.async=False
xmlDom.ValidateOnParse=false
xmlDom.load(xml.responseXML)

if xmlDom.ReadyState>2 Then 

  set oItem=xmlDom.getElementsByTagName("item")

  for i=0 to oItem.length-1
    response.write ""&i+1&". "&oItem(i).childNodes(0).text&" ["&oItem(i).childNodes(3).text&"]
"
    response.write "

摘要:"&oItem(i).childNodes(4).text&"

"
  next
end if
%>

本文作者:佚名 来源:http://www.phpup.com/asparticle/show-article-2696/
CIO之家 www.ciozj.com 微信公众号:imciow
   
免责声明:本站转载此文章旨在分享信息,不代表对其内容的完全认同。文章来源已尽可能注明,若涉及版权问题,请及时与我们联系,我们将积极配合处理。同时,我们无法对文章内容的真实性、准确性及完整性进行完全保证,对于因文章内容而产生的任何后果,本账号不承担法律责任。转载仅出于传播目的,读者应自行对内容进行核实与判断。请谨慎参考文章信息,一切责任由读者自行承担。
延伸阅读