/** * @ Author : 花心萝卜 , www.7xiwl.com * @ version : 2009.3.12 */ var DomainUrl = top.location.hostname; var AuthUrl = top.location.hostname; function Trim(){ return this.replace(/\s+$|^\s+/g,""); } String.prototype.Trim=Trim; function getObjValues(id){ if(getObjects(id).value!=undefined) return getObjects(id).value.Trim(); else return ""; } function getObjects(id) { if (document.getElementById) { return document.getElementById(id); } else if (document.all) { return document.all[id]; } else if (document.layers) { return document.layers[id]; } } function createXMLHttpRequest(){ if (window.XMLHttpRequest) {//wwww.7xiwl.com XMLHttpReq=new XMLHttpRequest(); } else if (window.ActiveXObject) {//IE 浏览器 try { XMLHttpReq=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ XMLHttpReq=new ActiveXObject("Micrsost.XMLHTTP"); } catch(e){} } } } var cache = new Array(); function getHttpObject() { var objType = false; try { objType = new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) { try { objType = new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) { objType = new XMLHttpRequest(); } } return objType; } function getlogin(){ var theHttpRequest = getHttpObject(); theHttpRequest.onreadystatechange = function() {processAJAX();}; theHttpRequest.open("GET", ""+web_url+"skin/skin_01/Ajax_Login.asp", true); theHttpRequest.send(null); function processAJAX(){ if (theHttpRequest.readyState == 4) { if (theHttpRequest.status == 200) { document.getElementById("userinfo").innerHTML = unescape(theHttpRequest.responseText); } else { document.getElementById("userinfo").innerHTML = "您请求的页面出现异常错误"; } } } } function getdoHits(_id){ var theHttpRequest = getHttpObject(); theHttpRequest.onreadystatechange = function() {processAJAX();}; theHttpRequest.open("GET", ""+web_url+"skin/skin_01/Ajax.asp?action=good_bad&id="+ _id, true); theHttpRequest.send(null); function processAJAX(){ if (theHttpRequest.readyState == 4) { if (theHttpRequest.status == 200) { document.getElementById("doHits").innerHTML = unescape(theHttpRequest.responseText); } else { document.getElementById("doHits").innerHTML = "您请求的页面出现异常错误"; } } } } function up_down(_id, _do){ createXMLHttpRequest(); XMLHttpReq.open("GET", ""+web_url+"skin/skin_01/Ajax.asp?action=doHits&id="+ _id +"&dowhat="+ _do,true); XMLHttpReq.onreadystatechange= function(){ if(XMLHttpReq.readyState == 4){ if(XMLHttpReq.status == 200){ if(XMLHttpReq.responseText == "Err_145"){ do_alert('您24小时内已顶(踩)过此舞曲!'); setTimeout('close_alert()', 2000); } getdoHits(_id); }else alert("网络链接失败"); } } XMLHttpReq.send(null); } function sendRequest(){ createXMLHttpRequest(); XMLHttpReq.open("POST", ""+web_url+"skin/skin_01/Ajax_Login.asp",true); XMLHttpReq.onreadystatechange= processResponse; XMLHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); XMLHttpReq.send("name=" + escape(getObjValues("username")) + "&pwd=" +escape(getObjValues("password")) + "&slogin=" + escape(getObjValues("slogin"))); } function goutRequest(){ createXMLHttpRequest(); XMLHttpReq.open("GET", ""+web_url+"skin/skin_01/Ajax_Login.asp?Ylmv_Com=logout",true); XMLHttpReq.onreadystatechange= processResponse; XMLHttpReq.send(null); } function get_top( _type ){ $("dance_list").innerHTML = '
读取数据中....
读取数据中....
读取数据中....