【www.gdgbn.com--excel】

可拖动的网站地图-爱逗网 <script type="text/javascript"> var $ = function(objName) { try {return eval("document.getElementById(\""+ objName +"\");");} catch(e) {return objName;} } // 显示/隐藏 RSS图标 function showImg(obj) { var len = document.getElementsByTagName("IMG").length; for (var i=0;i"); var xmlhttp; if (window.ActiveXObject) xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); else if (window.XMLHttpRequest) xmlhttp = new XMLHttpRequest; xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState == 4) { if (xmlhttp.status == 200) { var content; // 显示内容 content = "
    "; content += "
  • 关闭"; try { var doc = xmlhttp.responseXML.childNodes[1].firstChild; var ct = doc.firstChild.text; // 频道标题 content += ""+ ct +""; var items = doc.getElementsByTagName("item"); var itemCount = items.length; for (var i=0;i"+ (parseInt(i) + 1) + "." +""+ item.firstChild.text +""; } } catch (e) { content += "
  • 此频道无信息或获取信息时出现错误!"; } content += ""; //hidepopup(); createpopup(content); } else { createpopup("此类没有信息"); } } } //var url = "http://www.cndou.com.cn/pic/rss.php"; var url = obj.firstChild.href; xmlhttp.open("GET",url,true); xmlhttp.send(null); } // 创建泡泡 var opopup; var createpopup = function(strHtml) { if ($("opopup") == null) { opopup = document.createElement("div"); opopup.id = "opopup"; opopup.style.position = "absolute"; opopup.style.zIndex = 2000; opopup.style.left = x + 10 + "px"; opopup.style.top = y - 100 + "px"; opopup.style.width = "260px"; //opopup.style.height = "300px"; opopup.style.border = "solid 1px #ccc"; opopup.style.backgroundColor = "#fff"; opopup.style.filter = "Alpha(Opacity = 85)"; document.body.appendChild(opopup); } $("opopup").innerHTML = strHtml; } // 隐藏泡泡 hidepopup = function() { if ($("opopup") != null) document.body.removeChild($("opopup")); } // 如果鼠标在 0.5秒 内没有移动,则读取并显示内容 var a = setTimeout("getRSS();",500); obj.onmouseout = function() { clearTimeout(a); if (event.toElement != null && event.toElement != $("opopup")) hidepopup(); } document.onclick = hidepopup; } } </script>