XMLHttps_hta教程-查字典教程网
XMLHttps
XMLHttps
发布时间:2016-12-28 来源:查字典编辑
摘要:难得的是页面里面一个table也没有....而且居然在FF底下看还不会变形,哦哈哈哈直接运行的话URL只能填本域的,如果遇到安全性限制,代码...

难得的是页面里面一个 table 也没有....而且居然在 FF 底下看还不会变形,哦哈哈哈

直接运行的话 URL 只能填本域的,如果遇到安全性限制,代码 copy 到本地保存为 hta 运行

XMLHttps* { font-size:13px; line-height:13px; font-family:"Comic Sans MS" Arial 宋体; color:#333; padding:0px; margin:0px; }

body { background-color:buttonface; overflow:auto; border-style:none; padding:0px 15px; text-align:center; }

fieldset { margin:7px 0px; }

legend { font-weight:bold; font-size:14px; }

input { height:16px; line-height:14px; }

.text { height:16px; border:1px solid #333; font-size:12px; line-height:14px; padding:0px 5px; }

.settingLabel { width:120px; padding:0px 10px; height:16px; line-height:16px; display:block; float:left; }

.settingLabel2 { width:118px; padding:0px 10px; height:16px; line-height:16px; float:left; }

.label01 { width:90px; }

.floatLeft { float:left; }

.button01 { border:1px solid #666; color:#555; height:20px; line-height:16px; text-align:center; padding:0px 10px; text-decoration:none; margin-left:10px; }

#divMain { width:740px; margin:0px auto; position:relative; text-align:left; }

#txtURL { width:590px; }

#divHeaders { width:735px; height:90px; float:left; }

#outerSelectHeaders, #outerSelectItems { border:1px solid #333; overflow:hidden; position:absolute; margin:4px; }

#selectHeaders, #selectItems { width:220px; height:80px; margin:-3px -3px -5px -3px; }

#divHeadersSetting, #divItemsSetting { margin-left:360px; }

#txtHeaderName, #txtHeaderValue, #txtItemName, #txtItemValue { width:230px; }

#txtItemValue { height:35px; overflow:auto; padding:3px; border:1px solid #333; }

#divSending { height:120px; }

#divSendingData2 { display:none; }

#txtSendingData, #txtResponseHeader, #txtResponseBody { width:590px; height:80px; overflow:auto; border-width:1px; padding:3px; }

#divReadyState, #divStatus { margin:0px 50px 0px 2px; background-color:green; color:white; padding:0px 20px; float:left; display:block; }

/*************** * Global Variable Defintion * Author: Hutia**/

var cmdAddModifyHeader, cmdAddModifyItem, cmdCreateThread, cmdDelHeader, cmdDelItem, cmdSend, cmdViewResponse, divReadyState, divSendingData1;var divSendingData2, divStatus, divThreads, radioInputType1, radioInputType2, radioMethodGet;var radioMethodPost, selectHeaders, selectItems, txtHeaderName, txtHeaderValue;var txtItemName, txtItemValue, txtResponseHeader, txtResponseBody, txtSendingData, txtURL;

var xmlhttps=new Array();var curThread;

var glbEncode=new Array();

//**检测浏览器种类*****var BROWSERNAME="";switch(navigator.appName.toLowerCase()){ case "netscape": BROWSERNAME="ns"; break; case "microsoft internet explorer": default: BROWSERNAME="ie"; break;}

// init function for window.onloadfunction init(){ // init the window size fixSize(); //window.onresize=fixSize; // init all the global object variable for compatibility cmdAddModifyHeader=document.getElementById("cmdAddModifyHeader"); cmdAddModifyItem=document.getElementById("cmdAddModifyItem"); cmdCreateThread=document.getElementById("cmdCreateThread"); cmdDelHeader=document.getElementById("cmdDelHeader"); cmdDelItem=document.getElementById("cmdDelItem"); cmdSend=document.getElementById("cmdSend"); cmdViewResponse=document.getElementById("cmdViewResponse"); divReadyState=document.getElementById("divReadyState"); divSendingData1=document.getElementById("divSendingData1"); divSendingData2=document.getElementById("divSendingData2"); divStatus=document.getElementById("divStatus"); divThreads=document.getElementById("divThreads"); radioInputType1=document.getElementById("radioInputType1"); radioInputType2=document.getElementById("radioInputType2"); radioMethodGet=document.getElementById("radioMethodGet"); radioMethodPost=document.getElementById("radioMethodPost"); selectHeaders=document.getElementById("selectHeaders"); selectItems=document.getElementById("selectItems"); txtHeaderName=document.getElementById("txtHeaderName"); txtHeaderValue=document.getElementById("txtHeaderValue"); txtItemName=document.getElementById("txtItemName"); txtItemValue=document.getElementById("txtItemValue"); txtResponseHeader=document.getElementById("txtResponseHeader"); txtResponseBody=document.getElementById("txtResponseBody"); txtSendingData=document.getElementById("txtSendingData"); txtURL=document.getElementById("txtURL"); // init all the events for elements cmdAddModifyHeader.onclick=function(){setHeader();thread_setAttribute("headers",headers_select2array());return(false);} cmdAddModifyItem.onclick=function(){setItem();txtSendingData.value=items_select2string();thread_setAttribute("requestData",txtSendingData.value);return(false);} cmdDelHeader.onclick=function(){delHeader();thread_setAttribute("headers",headers_select2array());return(false);} cmdDelItem.onclick=function(){delItem();txtSendingData.value=items_select2string();thread_setAttribute("requestData",txtSendingData.value);return(false);} cmdAddModifyHeader.onmouseover=cmdAddModifyItem.onmouseover=cmdCreateThread.onmouseover=cmdDelHeader.onmouseover=cmdDelItem.onmouseover=cmdSend.onmouseover=cmdViewResponse.onmouseover=function(){this.style.backgroundColor="#E0E0E0";} cmdAddModifyHeader.onmouseout=cmdAddModifyItem.onmouseout=cmdCreateThread.onmouseout=cmdDelHeader.onmouseout=cmdDelItem.onmouseout=cmdSend.onmouseout=cmdViewResponse.onmouseout=function(){this.style.backgroundColor="";} cmdCreateThread.onclick=createThread; cmdSend.onclick=function(){ curThread=parseInt(curThread); if(isNaN(curThread))return; if(!xmlhttps[curThread])return; if(!xmlhttps[curThread].client)return; xmlhttps[curThread].resultTreated=false; xmlhttps[curThread].client.open(xmlhttps[curThread].method,xmlhttps[curThread].url+(xmlhttps[curThread].url.indexOf("?")==-1?"?":"&")+uid()+"="+uid(),true); for(var i=0;i

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新hta学习
    热门hta学习
    脚本专栏子分类