日期:2014-05-16 浏览次数:20391 次
function showDiv(ojb,kjb,id){ Mid="M"+id; $.ajax({ type: "POST", url: "../Domestic/getair.aspx", data: "aircode="+ojb+"&airclass="+kjb, success: function(result){ // alert( "Data Saved: " + result ); displayHotelDiv(result,Mid); } }); } //FlightAjax.js var thisLayer = document.createElement("div"); with (thisLayer.style) { position = "absolute"; left = "0px"; top = "0px"; margin = "0px"; width = "0%"; height = "0%"; //background = "#0066CC"; //filter = "Alpha(Opacity=30)"; //padding = "0px"; //clip = "rect(0px,auto,auto,auto)"; } thisLayer.setAttribute("onclick",function(){hideDisposeDiv();}); var thisBody = document.getElementsByTagName("body")[0]; var thisDiv = document.createElement("div"); thisDiv.style.position = "absolute"; thisDiv.style.display = "none"; var thisTable = document.createElement("table"); var thisTbody = document.createElement("tbody"); //thisTable.className = "td1"; var thisTr1 = document.createElement("tr"); var thisTr2 = document.createElement("tr"); var thisTr3 = document.createElement("tr"); var thisTr4 = document.createElement("tr"); var thisTd1 = document.createElement("td"); thisTd1.colspan="2"; thisTr1.appendChild(thisTd1); var thisTd3 = document.createElement("td"); var thisTd4 = document.createElement("td"); thisTr2.appendChild(thisTd3); thisTr2.appendChild(thisTd4); var thisTd5 = document.createElement("td"); var thisTd6 = document.createElement("td"); thisTr3.appendChild(thisTd5); thisTr3.appendChild(thisTd6); var thisTd7 = document.createElement("td"); var thisTd8 = document.createElement("td"); thisTr4.appendChild(thisTd7); thisTr4.appendChild(thisTd8); thisTbody.appendChild(thisTr1); thisTbody.appendChild(thisTr2); thisTbody.appendChild(thisTr3); thisTbody.appendChild(thisTr4); thisTable.appendChild(thisTbody); thisDiv.appendChild(thisTable); thisBody.appendChild(thisLayer); thisBody.appendChild(thisDiv); function displayHotelDiv(inputMsg,did){ var eT=0,eL=0,p=document.getElementById(did); thisTable.setAttribute("onclick",function(){hideDisposeDiv();}); if(document.body.scrollTop!=0 || (document.documentElement.scrollTop==0 && document.documentElement.clientHeight==0)) { var sT=document.body.scrollTop,sL=document.body.scrollLeft; var eH=p.height,eW=p.width; while(p&&p.tagName!="BODY"){eT+=p.offsetTop;eL+=p.offsetLeft;p=p.offsetParent;} thisDiv.style.top=((document.body.clientHeight-(eT-sT)-eH>=25)?eT+eH:eT-25) + "px"; thisDiv.style.left=((document.body.clientWidth-(eL-sL)>=25)?eL:eL+eW) + "px"; }else{ var sT=document.documentElement.scrollTop,sL=document.documentElement.scrollLeft; var eH=p.height,eW=p.width; while(p&&p.tagName!="BODY"){eT+=p.offsetTop;eL+=p.offsetLeft;p=p.offsetParent;} thisDiv.style.top=((document.documentElement.clientHeight-(eT-sT)-eH>=25)?eT+eH:eT)+18+ "px"; thisDiv.style.left=((document.documentElement.clientWidth-(eL-sL)>=100)?eL-150:eL+eW) + &qu