无为清净楼资源网 Design By www.qnjia.com
复制代码 代码如下:
<%
' I converted some of your example found on http://www.iteam5.net/francesco/atom/ over to jscript.
' Feel free to use it and keep up the good work.
' Tyson Kopczynski
' tyson@cco.com
function atom(strURL)
{
var objXML = new ActiveXObject("msxml2.DOMDocument.3.0");
objXML.async = false;
objXML.setProperty("ServerHTTPRequest", true);
objXML.validateOnParse = true;
objXML.preserveWhiteSpace = false;
if (!objXML.load(strURL))
{
var array = new Array();
Response.Write("<P>ERROR<br>code: " + objXML.parseError.errorCode)
Response.Write("<br>Linea/Col: " + objXML.parseError.line & "/" + objXML.parseError.linepos)
Response.Write("</P>")
return(array)
}
else
{
var objNodeList = objXML.getElementsByTagName("entry");
var arrDicts = new Array(objNodeList.length);
for (var i=0; i<objNodeList.length; i++)
{
arrDicts[i] = new ActiveXObject("Scripting.Dictionary");
arrDicts[i].Item("issued") = objNodeList[i].getElementsByTagName("issued")[0].firstChild.nodeValue
arrDicts[i].Item("id") = objNodeList[i].getElementsByTagName("id")[0].firstChild.nodeValue
arrDicts[i].Item("link") = objNodeList[i].getElementsByTagName("link")[1].getAttribute("href")
arrDicts[i].Item("author") = objNodeList[i].getElementsByTagName("author")[0].xml
arrDicts[i].Item("title") = objNodeList[i].getElementsByTagName("title")[0].firstChild.nodeValue
arrDicts[i].Item("content") = objNodeList[i].getElementsByTagName("content")[0].xml
}
return(arrDicts)
}
}
var blogURL = "http://taosage-net.blogspot.com/atom.xml";
var blogItems = atom(blogURL);
Response.Write("<strong>")
Response.Write("<a href='" + blogItems[0].Item("link") + "'>" + blogItems[0].Item("title") + "</a>")
Response.Write("</strong>")
Response.Write("<table width='100%' cellspacing='0' cellpadding='0'>")
Response.Write("<tr>")
Response.Write("<td width='10' rowspan='2'> </td>")
Response.Write("<td>" + blogItems[0].Item("content") + "<br></td>")
Response.Write("</tr>")
Response.Write("<tr>")
Response.Write("<td>posted by " + blogItems[0].Item("author") + " @ " + blogItems[0].Item("issued") + "</td>")
Response.Write("</tr>")
Response.Write("</table>")
%>
<%
' I converted some of your example found on http://www.iteam5.net/francesco/atom/ over to jscript.
' Feel free to use it and keep up the good work.
' Tyson Kopczynski
' tyson@cco.com
function atom(strURL)
{
var objXML = new ActiveXObject("msxml2.DOMDocument.3.0");
objXML.async = false;
objXML.setProperty("ServerHTTPRequest", true);
objXML.validateOnParse = true;
objXML.preserveWhiteSpace = false;
if (!objXML.load(strURL))
{
var array = new Array();
Response.Write("<P>ERROR<br>code: " + objXML.parseError.errorCode)
Response.Write("<br>Linea/Col: " + objXML.parseError.line & "/" + objXML.parseError.linepos)
Response.Write("</P>")
return(array)
}
else
{
var objNodeList = objXML.getElementsByTagName("entry");
var arrDicts = new Array(objNodeList.length);
for (var i=0; i<objNodeList.length; i++)
{
arrDicts[i] = new ActiveXObject("Scripting.Dictionary");
arrDicts[i].Item("issued") = objNodeList[i].getElementsByTagName("issued")[0].firstChild.nodeValue
arrDicts[i].Item("id") = objNodeList[i].getElementsByTagName("id")[0].firstChild.nodeValue
arrDicts[i].Item("link") = objNodeList[i].getElementsByTagName("link")[1].getAttribute("href")
arrDicts[i].Item("author") = objNodeList[i].getElementsByTagName("author")[0].xml
arrDicts[i].Item("title") = objNodeList[i].getElementsByTagName("title")[0].firstChild.nodeValue
arrDicts[i].Item("content") = objNodeList[i].getElementsByTagName("content")[0].xml
}
return(arrDicts)
}
}
var blogURL = "http://taosage-net.blogspot.com/atom.xml";
var blogItems = atom(blogURL);
Response.Write("<strong>")
Response.Write("<a href='" + blogItems[0].Item("link") + "'>" + blogItems[0].Item("title") + "</a>")
Response.Write("</strong>")
Response.Write("<table width='100%' cellspacing='0' cellpadding='0'>")
Response.Write("<tr>")
Response.Write("<td width='10' rowspan='2'> </td>")
Response.Write("<td>" + blogItems[0].Item("content") + "<br></td>")
Response.Write("</tr>")
Response.Write("<tr>")
Response.Write("<td>posted by " + blogItems[0].Item("author") + " @ " + blogItems[0].Item("issued") + "</td>")
Response.Write("</tr>")
Response.Write("</table>")
%>
标签:
atom_js.asp
无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com
暂无评论...
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
2024年11月16日
2024年11月16日
- 群星.1995-坠入情网【宝丽金】【WAV+CUE】
- 群星《谁杀死了Hi-Fi音乐》涂鸦精品 [WAV+CUE][1G]
- 群星1998《宝丽金最精彩98》香港首版[WAV+CUE][1G]
- 汪峰《也许我可以无视死亡》星文[WAV+CUE][1G]
- 李嘉-1991《国语转调2》[天王唱片][WAV整轨]
- 蔡琴2008《金声回忆录101》6CD[环星唱片][WAV整轨]
- 群星《2024好听新歌36》AI调整音效【WAV分轨】
- 梁朝伟.1986-朦胧夜雨裡(华星40经典)【华星】【WAV+CUE】
- 方芳.1996-得意洋洋【中唱】【WAV+CUE】
- 辛欣.2001-放120个心【上海音像】【WAV+CUE】
- 柏菲·万山红《花开原野1》限量开盘母带ORMCD[低速原抓WAV+CUE]
- 柏菲·万山红《花开原野2》限量开盘母带ORMCD[低速原抓WAV+CUE]
- 潘安邦《思念精选集全纪录》5CD[WAV+CUE]
- 杨千嬅《千嬅新唱金牌金曲》金牌娱乐 [WAV+CUE][985M]
- 杨钰莹《依然情深》首版[WAV+CUE][1G]