var xmlHttp;
function createXMLHttpRequest() {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
}
函數 readRSS(url) {
createXMLHttpRequest();
xmlHttp.onreadystatechange = handleStateChange;
xmlHttp.open("GET", url, true);
xmlHttp.send(null);
}
函數handleStateChange() {
if(xmlHttp.readyState == 4) {
if(xmlHttp.ready 4) {
結果集();
}
}
}
function ResultSet() {
var results = xmlHttp.responseXML;
var title = null;
var item = null;
var link=null;
//取得頻道
var ccc=results.getElementsByTagName("channel");
var headtitle=ccc[0].getElementsByTagName("title")[0].firstChild.nodeValue;
var headlink=ccc[0].getElementsByTagName("link")[0].firstChild.nodeValue;
var cell = document.createElement("div");
cell.innerHTML="
}
function readrss1()
{
var url=document.getElementById("txturl").value;
if(url=="")
{
alert("請輸入RSS位址");
}
else
{
}
}
腳本>
頭>