atom_js.asp(2)
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>")
内容版权声明:除非注明,否则皆为本站原创文章。