//----JavaScript Document(鏄畾涔夌紪杈戙€侀瑙堛€佹甯告祻瑙堟ā寮忎笅鍏卞悓浣跨敤杈撳嚭)---- //----JavaScript Document(鏄畾涔夊彲瑙嗗寲缂栬緫鍣ㄦā寮忎笅杈撳嚭)---- ///澶勭悊璇︾粏妯″潡鐨勯珮搴 $.PluginInfoViewHeight = function (o) { $(window).load(function () { o.c = $("#" + o.curr); o.t = $("#" + o.currtop); o.c.height = o.c.length ? o.c.outerHeight(true) : 0; o.t.h = o.t.length ? o.t.height() : 0; o.t.height(o.t.h < o.c.height ? o.c.height : o.t.h); o.cr = o.containerid.split(","); o.ar = o.areakey.split(","); o.d = o.c.height - o.t.h; o.cr.forEach(function (cri) { o.crt = $("#" + cri); if (o.crt.length > 0) { o.crt.height(o.d > 0 ? o.d + o.crt.height() : o.crt.height()); } if (cri.indexOf("_proot")<0) { o.crt.ms = o.crt.find("div[data-type]"); o.crt.ms.each(function () { if ($(this).offset().top - o.crt.offset().top > o.c.offset().top) { $(this).css("top", $(this).offset().top - o.crt.offset().top + o.d); } }); } }); o.ar.forEach(function (ari) { o.crt = $("#" + ari); if (o.crt.length > 0) { o.crt.height(o.d > 0 ? o.d + o.crt.height() : o.crt.height()); } }); }); } // 璁剧疆涓轰富椤 $.SetHome=function(obj, vrl) { try { obj.style.behavior = 'url(#default#homepage)'; obj.setHomePage(vrl); } catch (e) { if (window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { alert("姝ゆ搷浣滆娴忚鍣ㄦ嫆缁濓紒\n璇峰湪娴忚鍣ㄥ湴鍧€鏍忚緭鍏モ€渁bout:config鈥濆苟鍥炶溅\n鐒跺悗灏 [signed.applets.codebase_principal_support]鐨勫€艰缃负'true',鍙屽嚮鍗冲彲銆?); } var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); prefs.setCharPref('browser.startup.homepage', vrl); } else { alert("鎮ㄧ殑娴忚鍣ㄤ笉鏀寔锛岃鎸夌収涓嬮潰姝ラ鎿嶄綔锛?.鎵撳紑娴忚鍣ㄨ缃€?.鐐瑰嚮璁剧疆缃戦〉銆?.杈撳叆锛? + vrl + "鐐瑰嚮纭畾銆?); } } } // 鍔犲叆鏀惰棌 鍏煎360鍜孖E6 $.shoucang =function (sTitle, sURL) { try { window.external.addFavorite(sURL, sTitle); } catch (e) { try { window.sidebar.addPanel(sTitle, sURL, ""); } catch (e) { alert("鍔犲叆鏀惰棌澶辫触锛岃浣跨敤Ctrl+D杩涜娣诲姞"); } } } ///***寮傛鍔犺浇鐐瑰嚮鐜 $.AjaxModelClick = function (modelId) { window.onload = function () { $._modelthis = $("div[data-id='" + modelId + "']"); $.ajaxArray = $._modelthis.find("*[ajaxviewid]"); $.ajaxArray.each(function (item) { $.post("/online_editsite/webjsonhtml_ashx/web_retuenCilckCount.ashx", { modelId: modelId, infoId: $($.ajaxArray[item]).attr("ajaxviewid") }, function (result) { $($.ajaxArray[item]).html(result); }); }); } }