Local

prueba

el 14 sep 2009 / 22:25 h.

TAGS:

function GAD_doit(firstTime){ getScripts(firstTime); setTimeout("GAD_doit(false)", 1000000); } function GAD_callback_html(GAD_html){ con2 = document.getElementById("GADcontent"); con2.innerHTML = GAD_html; } function getScripts(firstTime) { getHTML(); if(false || firstTime) getJavascript(); if(false || firstTime) getStyle(); } function getHTML() { sc = document.getElementById("GAD_getHtml"); con = document.getElementById("GADcontentScript"); if(sc) con.removeChild(sc); sc = document.createElement("script"); sc.id = "GAD_getHtml"; con = document.getElementById("GADcontentScript"); con.appendChild(sc); sc.src = "http://www.as.com/rss/gadget/gadget.html?tc=crf&tipo=2&do=c&tg=emb&cview=htmljs"; } function getJavascript() { con = document.getElementsByTagName("head")[0]; sc = document.getElementById("GAD_getScript"); if(sc) con.removeChild(sc); sc = document.createElement("script"); sc.id = "GAD_getScript"; con.appendChild(sc); sc.src = "http://www.as.com/rss/gadget/gadget.html?tc=crf&tipo=2&do=c&tg=emb&cview=js"; } function getStyle() { if(document.createStyleSheet) { if(!document.styleSheets.length > 0 || document.styleSheets(0).href.indexOf("http://www.as.com/rss/gadget/gadget.html?tc=crf&tipo=2&do=c&tg=emb&cview=style") < 0) sc = document.createStyleSheet("http://www.as.com/rss/gadget/gadget.html?tc=crf&tipo=2&do=c&tg=emb&cview=style", 0); else document.styleSheets(0).href = "http://www.as.com/rss/gadget/gadget.html?tc=crf&tipo=2&do=c&tg=emb&cview=style"; } else { sc = document.getElementById("GAD_getStyle"); if(sc) sc.parentNode.removeChild(sc); var sc=document.createElement("link"); sc.id = "GAD_getStyle"; sc.rel="stylesheet"; sc.type="text/css"; document.getElementsByTagName("head")[0].appendChild(sc); sc.href="http://www.as.com/rss/gadget/gadget.html?tc=crf&tipo=2&do=c&tg=emb&cview=style"; } } function GAD_callback_resize(){ }
Esperando contenido...
GAD_doit(true);

  • 1