var GameRelatedListGameCallBackCol = ""; var GameRelatedListGameCallBackCol2 = ""; var GameRelatedListGameCallBackCol3 = ""; var firstOptionText = "游戏名称"; function doGameRelatedList(gameType, col, id,col3) { GameRelatedListGameCallBackCol = col; GameRelatedListLoading(); if (gameType == "GameAreas") { //initGameRelatedListGameServers(); //initTradingServiceType(id); } GetGames(gameType,id); //alert("aaa"); //alert("1:" + col3);alert("bbb"); if(col3!=null) { ddlItemDel(col3); GetOfferTypes(id); document.getElementById(col3).options[0] = new Option("全服","-1"); } } function doGameRelatedList2(gameType,gameType2, col,col2,col3, id,col4) { //alert(' id=' + id + ' id2=' + document.getElementById(gm_id).value); id=document.getElementById(gm_id).value; GameRelatedListGameCallBackCol = col; GameRelatedListGameCallBackCol2 = col2; GameRelatedListLoading2(); //加载游戏区 GetGames(gameType,id); //加载游戏所支持的物品种类 GetOfferTypes(id); //重置服务器列表的值 ddlItemDel(col3); document.getElementById(col3).options[0] = new Option("全服","-1"); } //加载该游戏支持的物品种类 function GameRelatedListLoading2() { var ddl = document.getElementById(GameRelatedListGameCallBackCol); firstOptionText = ddl.options[0].text; ddl.selectedIndex = 0; ddl.options[0].value = "-1"; ddl.options[0].text = "加载中"; var ddl2 = document.getElementById(GameRelatedListGameCallBackCol2); firstOptionText = ddl2.options[0].text; ddl2.selectedIndex = 0; ddl2.options[0].value = "-1"; ddl2.options[0].text = "加载中"; } //加载所选游戏支持的物品种类 var OfferTypes_request = false; function GetOfferTypes(id) { //开始初始化XMLHttpRequest 对象 if(window.XMLHttpRequest) { //Mozilla 浏览器 OfferTypes_request = new XMLHttpRequest(); if (OfferTypes_request.overrideMimeType) {//设置MiME 类别 OfferTypes_request.overrideMimeType("text/xml"); } } else if (window.ActiveXObject) { // IE 浏览器 try { OfferTypes_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { OfferTypes_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!OfferTypes_request) { // 异常,创建对象实例失败 window.alert("不能创建XMLHttpRequest 对象实例."); return false; } OfferTypes_request.onreadystatechange = GameRelatedListOffersCallBack; // 确定发送请求的方式和URL 以及是否同步执行下段代码 //OfferTypes_request.open("POST", 'ajax.axd?methodName=GetOfferTypesByGameID&gameType=offertypes&gameid='+id, true); var u = encodeURIComponent("http://www.5173.com/ajax.axd?methodName=GetOfferTypesByGameID&gameType=offertypes&gameid=" + id); OfferTypes_request.open("POST", '/Controls/Common/Proxy.aspx?url=' + u, true); OfferTypes_request.send(""); } //清空DropDownList function ddlItemDel(ddlName) { //清空DropDownList var countnum=document.getElementById(ddlName).options.length; for(var i=1;i