/**2019-06-03 10:31:54 merge:*/
/**[file/script/config.js] */
if(window.location.href.indexOf("chinadd.cn") != -1){document.domain = "chinadd.cn";}var DTPath = "http://www.chinadd.cn/";var DTMob = "http://m.chinadd.cn/";var SKPath = "http://dd2.chinajm.cn/skin/chinadd.cn/";var SKDPath = "http://dd2.chinajm.cn/skin/default/";var MSKPath = "http://dd2.chinajm.cn/wap/chinadd.cn/";var MEPath = "http://www.chinadd.cn/member/";var DTEditor = "fckeditor";var EXPath = "http://www.chinadd.cn/extend/";var CKDomain = ".chinadd.cn";var CKPath = "/";var CKPrex = "DWN_";var JMstyle = "skin-transparent";var OaDomain = "https://a.chinajm.cn/";var AgentForm_ApiUrl = "https://a.chinajm.cn/api/agent/baoming.html";var FundList=['10万以内','10~30万','30~50万','50~100万','100万以上'];var StoreList=['0~50平米','50~80平米','80~100平米','100~150平米','150~250平米','250平米以上'];var DTRegTelephone = "(^(0[0-9]{2,3}\\-)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?$)|(^((\\(\\d{3}\\))|(\\d{3}\\-))?(1[3-9]\\d{9})$)|(^1[3-9]\\d(\\-)\\d{4}(\\-)\\d{4}$)|(^400-*\\d{3}-*\\d{4}$)";var DTRegMobile = "(^((\\(\\d{3}\\))|(\\d{3}\\-))?(1[3-9]\\d{9})$)";
/**[file/script/common.js] */
var UA = navigator.userAgent.toLowerCase();
var isIE = (document.all && window.ActiveXObject && !window.opera) ? true : false;
var isGecko = UA.indexOf('webkit') != -1;
var DMURL = document.location.protocol+'//'+location.hostname+(location.port ? ':'+location.port : '')+'/';
var AJPath = (DTPath.indexOf('://') == -1 ? DTPath : (DTPath.indexOf(DMURL) == -1 ? DMURL : DTPath))+'ajax.php';
if(isIE) try {document.execCommand("BackgroundImageCache", false, true);} catch(e) {};
var xmlHttp;
var Try = {
these: function() {
var returnValue;
for (var i = 0; i < arguments.length; i++) {var lambda = arguments[i]; try {returnValue = lambda(); break;} catch (e) {}}
return returnValue;
}
};
function makeRequest(queryString, php, func, method) {
xmlHttp = Try.these(
function() {return new XMLHttpRequest();},
function() {return new ActiveXObject('Msxml2.XMLHTTP');},
function() {return new ActiveXObject('Microsoft.XMLHTTP');}
);
method = (typeof method == 'undefined') ? 'post' : 'get';
if(func) xmlHttp.onreadystatechange = eval(func);
xmlHttp.open(method, method == 'post' ? php : php+'?'+queryString, true);
xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlHttp.send(method == 'post' ? queryString : null);
}
function Dd(i) {return document.getElementById(i);}
//function Ds(i) {Dd(i).style.display = 'block';} 这样会引起后台的tbody结果错乱 KQL 2017.8.26
function Ds(i) {Dd(i).style.display = '';}
function Dh(i) {Dd(i).style.display = 'none';}
function Dsh(i) {Dd(i).style.display = Dd(i).style.display == 'none' ? '' : 'none';}
function Df(i) {Dd(i).focus();}
var tID=0;
function Tab(ID) {
var tTab = Dd('Tab'+tID); var tTabs = Dd('Tabs'+tID); var Tab = Dd('Tab'+ID); var Tabs = Dd('Tabs'+ID);
if(ID!=tID) {tTab.className='tab'; Tab.className='tab_on'; tTabs.style.display='none'; Tabs.style.display=''; tID = ID; try{Dd('tab').value=ID;}catch(e){}}
}
function checkall(f, t) {
var t = t ? t : 1;
for(var i = 0; i < f.elements.length; i++) {
var e = f.elements[i];
if(e.type != 'checkbox') continue;
if(t == 1) e.checked = e.checked ? false : true;
if(t == 2) e.checked = true;
if(t == 3) e.checked = false;
}
}
function stoinp(s, i, p) {
if(Dd(i).value) {
var p = p ? p : ',';
var a = Dd(i).value.split(p);
for (var j=0; j '+str+sound('tip');Dd(i).focus();}catch(e){}
window.setTimeout(function(){Dd('d'+i).innerHTML = '';}, t);
}
function Inner(i,s) {try {Dd(i).innerHTML = s;}catch(e){}}
function InnerTBD(i,s) {try {/*Dd(i).innerHTML = s;20130922由于ie浏览器下innerhtml属性为只读,js操作会差生错误,固使用jquery处理*/$("#"+i).html(s);} catch(e) {Dd(i).parentNode.outerHTML=Dd(i).parentNode.outerHTML.replace(Dd(i).innerHTML,s);}}
function Go(u) {window.location = u;}
function confirmURI(m,f) {if(confirm(m)) Go(f);}
function showmsg(m, t) {
var t = t ? t : 15000;
if(typeof m=='undefined') return ;
var s = m.indexOf(L['str_delete']) != -1 ? 'delete' : 'ok';
try{Dd('msgbox').style.display = '';Dd('msgbox').innerHTML = m+sound(s);window.setTimeout('closemsg();', t);}catch(e){}
}
function closemsg() {try{Dd('msgbox').innerHTML = '';Dd('msgbox').style.display = 'none';}catch(e){}}
function sound(f) {return "";/*return '
';*/}
function Eh(t) {
var t = t ? t : 'select';
if(isIE) {
var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
if(IEversion >= 7 || IEversion < 5) return;
var ss = document.body.getElementsByTagName(t);
for(var i=0;i= 7 || IEversion < 5) return;
var ss = document.body.getElementsByTagName(t);
for(var i=0;i 1;
}
}
function ext(v) {return v.substring(v.lastIndexOf('.')+1, v.length).toLowerCase();}
function PushNew() {
$('#destoon_push').remove();
s = document.createElement("script");
s.type = "text/javascript";
s.id = "destoon_push";
s.src = DTPath+"api/push.js.php?refresh="+Math.random()+".js";
document.body.appendChild(s);
}
function set_cookie(n, v, d) {
var e = '';
var f = d ? d : 365;
e = new Date((new Date()).getTime() + f * 86400000);
e = "; expires=" + e.toGMTString();
document.cookie = CKPrex + n + "=" + escape(v) + ((CKPath == "") ? "" : ("; path=" + CKPath)) + ((CKDomain =="") ? "" : ("; domain=" + CKDomain)) + e;
}
function get_cookie(n) {
var v = ''; var s = CKPrex + n + "=";
if(document.cookie.length > 0) {
o = document.cookie.indexOf(s);
if(o != -1) {
o += s.length;
end = document.cookie.indexOf(";", o);
if(end == -1) end = document.cookie.length;
v = unescape(document.cookie.substring(o, end));
}
}
return v;
}
function del_cookie(n) {var e = new Date((new Date()).getTime() - 1 ); e = "; expires=" + e.toGMTString(); document.cookie = CKPrex + n + "=" + escape("") +";path=/"+ e;}
function substr_count(str, exp) {if(str == '') return 0;var s = str.split(exp);return s.length-1;}
function lang(s, a) {for(var i = 0; i < a.length; i++) {s = s.replace('{V'+i+'}', a[i]);} return s;}
/*
此功能随着页面改版,不再需要了
document.onkeydown = function(e) {
var k = typeof e == 'undefined' ? event.keyCode : e.keyCode;
if(k == 37) {//向左
try{if(Dd('destoon_previous').value && typeof document.activeElement.name == 'undefined')Go(Dd('destoon_previous').value);}catch(e){}
} else if(k == 39) {//向右
try{if(Dd('destoon_next').value && typeof document.activeElement.name == 'undefined')Go(Dd('destoon_next').value);}catch(e){}
} else if(k == 38 || k == 40 || k == 13) { //上 下 回车 此功能随着页面改版,不再需要了
try{if(Dd('search_tips').style.display != 'none' || Dd('search_tips').innerHTML != ''){SCTip(k);return false;}}catch(e){}
}
};*/
/**
* 处理属性勾选与关键词同步
*/
function keywords(obj,num){
var keyword=$("#keyword").val();
var keywords=keyword.split(',');
var text=$(obj).attr("text");
if($(obj).attr('checked')){
//如果不存在
if(keyword.indexOf(text)== -1){
keyword=keyword+','+text;
}
//取消选中,将关键词去掉
}else{
var temp='';
for(var i=0;i 2006-07-02 08:09:04.423
//(new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
Date.prototype.Format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
};
//var time1 = new Date().Format("yyyy-MM-dd");
//var time2 = new Date().Format("yyyy-MM-dd HH:mm:ss");
/**[file/script/GoMobile.js] */
(function GoMobile() {
var UA = navigator.userAgent.toLowerCase();
var metas = document.getElementsByTagName("meta");
for(i=0;i