站长答疑:(张先生) | 手机:18616712339 | 在线QQ: | . |
|
钮门快递软件 >> 快递网站制作 快递价格查询表单中Ajx脚本代码
//--加入脚本--
var request = false; try {request = new XMLHttpRequest();} catch (trymicrosoft) { try{request = new ActiveXObject('Msxml2.XMLHTTP');} catch (othermicrosoft) { try{request = new ActiveXObject('Microsoft.XMLHTTP');} catch (failed){request = false;}}} function GO(o){ if(event.keyCode==13){ event.keyCode=9;o.focus();}} function QueryDes() { var url = "/cgi-bin/GInfo.dll?ajxEmsQueryDes&cdes="+theForm.cdes.value; request.open("GET", url, true); request.onreadystatechange = QueryDesOK; request.send(null); } function QueryDesOK() { if (request.readyState == 4) { if (request.status == 200) { if(request.responseText.charAt(0) == "-") return ; var response = request.responseText.split("|"); theForm.cdes.value=response[2].replace(/|/g,"|"); return ; } } } //--表单样式-- <form method='POST' id='theForm' name='theForm'...> .... <input type='text' name='cdes' size='30' onblur='QueryDes();' onkeypress='GO(eval(fweight));'> .... 钮门快递软件|EMMIS[2022.11.11-22:28]编辑:钮门快递软件|EMMIS 访问:662
※※相关信息专题※※ §Ginfo手册
|
|
关于本网站
|
... |
物流查询工具
|
网站快速通道
|
其他服务与支持
|