//灞忚斀榧犳爣鍙抽敭 var jsArgument = document.getElementsByTagName("script")[document.getElementsByTagName("script").length-1].src; //鑾峰彇浼犻€掔殑鍙傛暟 rightButton = jsArgument.substr(jsArgument.indexOf("rightButton=") + "rightButton=".length, 1); if (rightButton == "1"){ document.oncontextmenu = function(e){return false;} document.onselectstart = function(e){return false;} if (navigator.userAgent.indexOf("Firefox") > 0){ document.writeln(""); } } // 鎵嬫満绔欒嚜鍔ㄨ烦杞 mobilejump = jsArgument.substr(jsArgument.indexOf("mobilejump=") + "mobilejump=".length, 1); if (mobilejump == "1"){ var url = window.location.href; if(url.slice(url.lastIndexOf("/")+1)=="index.php"){ url = url.slice(0,url.lastIndexOf("/")+1); } var isAndroid = navigator.appVersion.toLowerCase().indexOf("android") >= 0, isIphone = navigator.appVersion.toLowerCase().indexOf("iphone") >= 0; if (isAndroid || isIphone){ window.location.href = url +"m"; }; } // 璁句负棣栭〉 function setHome(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',鍙屽嚮鍗冲彲銆?); return; } var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); prefs.setCharPref('browser.startup.homepage', vrl); }else{ alert("鎶辨瓑锛屾偍鎵€浣跨敤鐨勬祻瑙堝櫒鏃犳硶瀹屾垚姝ゆ搷浣溿€俓n\n鎮ㄩ渶瑕佹墜鍔ㄥ皢銆?+vrl+"銆戣缃负棣栭〉銆?); } } } // 鍔犲叆鏀惰棌 function addFavorite(sURL, sTitle){ try{ window.external.addFavorite(sURL, sTitle); }catch (e){ try{ window.sidebar.addPanel(sTitle, sURL, ""); }catch (e){ alert("鎮ㄤ娇鐢ㄧ殑娴忚鍣ㄤ笉鏀寔姝ゅ姛鑳斤紝璇蜂娇鐢–trl+D杩涜娣诲姞"); } } } // 淇濆瓨鍒版闈 function toDesktop(sUrl,sName){ try { var WshShell = new ActiveXObject("WScript.Shell"); var oUrlLink = WshShell.CreateShortcut(WshShell.SpecialFolders("Desktop") + "\\" + sName + ".url"); oUrlLink.TargetPath = sUrl; oUrlLink.Save(); }catch(e){ alert("褰撳墠IE瀹夊叏绾у埆涓嶅厑璁告搷浣滐紒"); } } // 娴忚鍣ㄧ増鏈 $(function(){ var DEFAULT_VERSION = "8.0"; var ua = navigator.userAgent.toLowerCase(); var isIE = ua.indexOf("msie")>-1; var safariVersion; if(isIE){ safariVersion = ua.match(/msie ([\d.]+)/)[1]; if(safariVersion <= DEFAULT_VERSION ){ $("body").append("