06-02-2009 11:01

Página lançada

<script language="JavaSCript" type="text/javascript">
var RSSDoc = new ActiveXObject("Microsoft.XMLHTTP");
RSSDoc.open("GET", "https://g1.globo.com/Rss2/0,,AS0-5598,00.xml", true);
RSSDoc.onreadystatechange = function() {
if (RSSDoc.readyState == 4) {
if (RSSDoc.status == 200) {
var XML_RSS = RSSDoc.responseXML;
var ItensRSS = XML_RSS.getElementsByTagName("item");
var HTML_new = "";
for (var i = 0; i < ItensRSS.length; i++) {
var Title = ItensRSS[i].getElementsByTagName("title")[0].firstChild.nodeValue;
var URL = ItensRSS[i].getElementsByTagName("link")[0].firstChild.nodeValue;
HTML_new += '<a href="' + URL + '" target="_blank">• ' + Title + '</a><br>';
}
document.write(HTML_new);
} else {
alert("Erro no RSS: " + RSSDoc.statusText + " (" + RSSDoc.status + ")");
}
}
}
RSSDoc.send(null);
</script>

—————

Voltar


Contacto

Jorge Silva

Rua Ferreira de Castro, 82
Loja 4 R/C
Galerias Ipanema

4520-227
Santa Maria da Feira
PORTUGAL


256 362 663
965 294 769