|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
- <!-- 对接:来磊 -->
- <form id="form1" name="form1" method="post">
- <table width="98%" border="0" cellspacing="0" cellpadding="0" style="margin-top:4px">
- <tr>
- <td width="15%" rowspan="4" align="left" valign="middle"><img src="wldh.jpg" width="140" height="138"></td>
- <td width="33%" height="30">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="30" align="left" style="color:#CC0000; font-weight:bold">欢迎XXXXXXXX</td>
- </tr>
- <tr>
- <td height="30" align="left" style="line-height:20px">
- <input type="radio" name="receiverListItem" value="XXXX-XXXXXXXX" checked="checked" onClick="$('receiverNumber').value=]XXXX-XXXXXXXX';$('receiverNumberNo').value='0'">
- 1.联系电话:XXXX-XXXXXXXX<br>
- <input type="radio" name="receiverListItem" value="XXXXXXXXXXXX" onClick="$('receiverNumber').value='XXXXXXXXXXXX';$('receiverNumberNo').value='1'">
- 2.联系电话:XXXXXXXXXXXX<br>
- <input name="receiverNumber" id="receiverNumber" type="hidden" value="XXXX-XXXXXXXX">
- <input name="receiverNumberNo" id="receiverNumberNo" type="hidden" value="0">
- </td>
- </tr>
- </table></td>
- <td width="52%" rowspan="4" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:5px;">
- <tr>
-
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="30" align="left"><span style="font-size:14px; font-weight:bold">请输入你的电话号码或手机号码</span></td>
- </tr>
- <tr>
- <td>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="30" align="left">
- <input name="teltype" type="radio" checked="checked" id="telRadio"/>
- <input name="areaCode" type="text" id="areaCode" value="区号" size="6" onClick="if(value=='区号'){value='';}"/>
- - <input name="telNumber" type="text" id="telNumber" value="座机号码" size="20" onClick="if(value=='座机号码'){value='';}" style="width:150px"/></td>
- </tr>
- <tr>
- <td height="30" align="left">
- <input type="radio" name="teltype" id="mobileRadio" />
- <input name="mobileNumber" type="text" id="mobileNumber" value="手机号码" size="30" onClick="if(value=='手机号码'){value='';}" style="width:223px"/></td>
- </tr>
- </table> </td>
- </tr>
- <tr>
- <td height="30" align="left"><img src="free.jpg" border="0" align="absmiddle" onClick="return callpost()" style=" cursor:pointer"> ;<span id="msg" style="font-size:13px"><-点击"免费通话"按钮 </span><br>
- <span style="color:#CC0000; font-weight:bold">接听电话与对方同时畅享免费电话沟通与交流</span>
- </td>
- </tr>
- </table>
- </form>
- <script language="javascript" src="../js.js"></script>
- <script>
- var timeOut = 10000;
- function callpost(){
- var receiverNumber=$('receiverNumber').value;
- var receiverNumbeNo=$('receiverNumberNo').value;
- var isTelChecked = $("telRadio").checked;
- var isMobileChecked = $("mobileRadio").checked;
- if(isTelChecked){
- var areaCode = $("areaCode").value;
- var telNumber = $("telNumber").value;
- if(areaCode.match(/^\d{3,5}$/) && telNumber.match(/^\d{7,8}$/)) {
- var callNumber = areaCode + telNumber;
- } else {
- alert("电话号码填写有误,请确认");
- return false;
- }
- }else if(isMobileChecked){
- var mobileNumber = $("mobileNumber").value;
- if(mobileNumber.match(/^\d{11,12}$/)) {
- var callNumber = mobileNumber;
- } else {
- alert("手机号码填写有误,请确认");
- return false;
- }
- }else{
- return false;
- }
- if(confirm('您拨打的电话是:'+receiverNumber)){
- $('msg').innerHTML = '正在拨号,请稍候...';
- getAjax('postcall/?id=XXXXn'+receiverNumbeNo+'&callNumber='+callNumber,
- function(txt){
- var errMsg = '';
- switch(parseInt(txt)){
- case 1:
- errMsg = '拨打成功,请接听!!';
- break;
- case 2:
- errMsg = '拨打失败,非法链接,请重新在拨!!';
- break;
- case 3:
- errMsg = '你要拨打的电话正在通话中…,请稍后再拨!';
- break;
- case 4:
- errMsg = '拨打失败,号码不正常,请重新在拨!!';
- break;
- case 5:
- errMsg = '拨打失败,传值中的日期与车音网的日期不同,请重新在拨!!';
- break;
- case 6:
- errMsg = "拨打失败,系统原因,请重新在拨!!";
- break;
- case 7:
- errMsg = '拨打失败!重复拨打!';
- break;
- default:
- errMsg = "拨打失败,请重新在拨!!";
- }
- //$('msg').innerHTML=errMsg;
- //alert(errMsg);
- if(parseInt(txt)==1){
- var wait = setTimeout(function(){
- $('msg').innerHTML='拨号成功,准备接听!!';
- },timeOut);
- }else{
- $('msg').innerHTML='线路忙,请重新拨号!!';
- }
- },
- function(){
- $('msg').innerHTML='';
- alert('拨打失败,请重新在拨');
- }
- );
- return true;
- }else{
- return false;
- }
- }
- function $(id){
- return document.getElementById(id);
- }
- </script>
复制代码 XXXX-XXXXXXXX 和 XXXXXXXXXXXX 都是被叫号码
好了 说正题 我怎么修改跨域 或者 提交来修改被叫号码
域名加上postcall/?id=XXXXn1&callNumber=13888888888 通过浏览器提交能接通被叫这个号码 这里的XXXX是提交ID XXXXn1等于是被叫号码 后面那个1是指第一个电话 上面代码中有 value='1' 好像是这个意思吧 我也不清楚
被叫号码通过什么方法能修改掉 前面代码中固定的被叫 但是我如何跨域 或者 通过IE提交能修改啊 |
|