document.getElementById('logo').isHomePage("http://tool.114la.com")||
document.getElementById('logo').isHomePage("http://tool.114la.com/"))
{
return true;
}else{
return false;
}
}

function get_alexa_map(url){

var time = document.getElementById('time').value;

var type_group = document.getElementsByName('type');
var type_value = null;
for (var i = 0; i < type_group.length; i++) {
if (type_group[i].checked) {
type_value = type_group[i].value;
}
}

var map_api = 'http://traffic.alexa.com/graph?w=700&h=260&r='+time+'&y='+type_value+url;



document.getElementById('map').src = map_api;

}



function getQueryString(name) {
if(location.href.indexOf("?")==-1 || location.href.indexOf(name+'=')==-1)
{
return '';
}

var queryString = location.href.substring(location.href.indexOf("?")+1);
var parameters = queryString.split("&");
var pos, paraName, paraValue;
for(var i=0; i<parameters.length; i++) {
pos = parameters[i].indexOf('=');
if(pos == -1) { continue; }
paraName = parameters[i].substring(0, pos);
paraValue = parameters[i].substring(pos + 1);
if(paraName == name){
//alert(paraValue.replace(/\+/g, " "));
//return unescape(paraValue.replace(/\+/g, " "));
//return paraValue.replace(/\+/g, " ");
return encodeURIComponent(paraValue.replace(/\+/g, " "));
}
}

return '';
};



//全一快递货件
function _apex100(){
var borcode = document.getElementById('borcode').value;
borcode = '%27'+borcode+'%27,%27%27';
window.open('http://www.apex100.com/trace.aspx?barcode='+borcode);
return false;
}

//快递费用查询
function get_express_cost(start,end,weight,page){

$("#express_cost").ajaxStart(function(){$(this).html('<div class="loading">正在加载...</div>')})

$.ajax({
type: "post",
cache:false,
url: action['express_cost'],
data: "action=express_cost&start="+start+"&end="+end+"&weight="+weight+"&page="+page,
timeout:timeout,
success: function(data){
$('#express_cost').html(data);
},
error: function(){
$('#express_cost').html('服务器繁忙,请稍后再试!');
}
});

return false;

}



//快递费用查询
function get_links(){

var domain = $('#domain').val().is_domain();

if(!domain){

return false;

}

$("#links").ajaxStart(function(){$(this).html('<div class="loading">正在加载...</div>')})

$.ajax({
type: "post",
cache:false,
url: action['links'],
data: "action=links&domain="+domain,
timeout:timeout,
success: function(data){
$('#links').html(data);
},
error: function(){
$('#links').html('服务器繁忙,请稍后再试!');
}
});

return false;

}

function links_baidu(id,domain){

$.ajax({
type: "post",
cache:false,
url: action['links'],
data: "action=links_baidu&domain="+domain,
timeout:300000,
success: function(data){
$('#b'+id).html(data);
},
error: function(){
$('#b'+id).html('服务器繁忙,请稍后再试!');
}
});


}

function links_pr(id,domain){

$.ajax({
type: "post",
cache:false,
url: action['links'],
data: "action=links_pr&domain="+domain,
timeout:300000,
success: function(data){
$('#p'+id).html(data);
},
error: function(){
$('#p'+id).html('服务器繁忙,请稍后再试!');
}
});

}

function links_info(id,domain,url){

$.ajax({
type: "post",
cache:false,
url: action['links'],
data: "action=links_info&domain="+domain+"&url="+url,
timeout:300000,
success: function(data){
$('#i'+id).html(data);
},
error: function(){
$('#i'+id).html('服务器繁忙,请稍后再试!');
}
});

}

function get_mobile(){

$("#info").ajaxStart(function(){$(this).html('<div class="loading">正在加载...</div>')})



var number = document.getElementById('number').value;

if(/^(13[0-9]|15[0-9]|18[8|9])\d{8}$/.test(number)){

$.ajax({
type: "post",
cache:false,
url: action['mobile'],
data: "action=mobile&number="+number,
timeout:300000,
success: function(data){
$('#copyvalue').val($('#thisurl').val()+'?mobile='+number);
$('#copyblock').show();
$('#info').html(data);
},
error: function(){
$('#info').html('服务器繁忙,请稍后再试!');
}
});

}else{

alert('请您输入正确的手机号码!');

}

return false;
}


function get_postalcode(val,type,url){

$("#postalcode").ajaxStart(function(){$(this).html('<div class="loading">正在加载...</div>')})

$.ajax({
type: "post",
cache:false,
url: url+'/action/postalcode.php',
data: "action=postalcode&val="+val+"&type="+type,
timeout:300000,
success: function(data){
$('#postalcode').html(data);
},
error: function(){
$('#postalcode').html('服务器繁忙,请稍后再试!');
}
});
}

function get_wubi(){
var chinese = $("#chinese").val();

if(chinese.trim() == ''){
alert("请您输入您要查询的汉字!");
return false;
}

$("#wubi").ajaxStart(function(){$(this).html('<div class="loading">正在加载...</div>')})

$.ajax({
type: "post",
cache:false,
url: url+'/action/wubi.php',
data: "action=wubi&chinese="+chinese,
timeout:300000,
success: function(data){
$('#wubi').html(data);
},
error: function(){
$('#wubi').html('服务器繁忙,请稍后再试!');
}
});
return false;

Prev | Next
Pg.: 1 2 3 4


Back to home | File page

Subscribe | Register | Login | N