//灞忚斀榧犳爣鍙抽敭 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("
鎮ㄥ綋鍓嶄娇鐢ㄧ殑IE娴忚鍣ㄧ増鏈繃浣庯紝涓轰簡鎮ㄧ殑娴忚浣撻獙锛屽缓璁偍鍗囩骇鍒?a style='color:#f00;font-weight:bold;' href='https://www.microsoft.com/zh-cn/download/internet-explorer.aspx' title='鐐瑰嚮涓嬭浇鏈€鏂癐E娴忚鍣? target='_blank'> IE9+ 鎴栬€呬娇鐢?a style='color:#f00;font-weight:bold;' href='http://www.firefox.com.cn/' title='鐐瑰嚮涓嬭浇鏈€鏂癴irefox娴忚鍣? target='_blank'> firefox , chrome 鏈€鏂扮増鏈紒X
"); } } }) // 鍥炲埌椤堕儴 $(document).ready(function(){ $(window).scroll(function(){ var scrollH = $(window).scrollTop(); if(scrollH>300){ $(".back-to").fadeIn(); }else{ $(".back-to").fadeOut(); } }) $(".back-to").on('click',function(){ $('html,body').animate({'scrollTop':0},500); }); }) // 鍦ㄧ嚎QQ $(function(){ var m_woo_panel = $('#m-woo-panel'); $('#j-close').on('click',function(){ m_woo_panel.hide(); }); $('#j-console').on("click",function(){ if($(this).hasClass("m-console-active")){ $(this).removeClass("m-console-active"); m_woo_panel.animate({right:0}); }else{ $(this).addClass("m-console-active"); m_woo_panel.animate({right:-164}); }; }); }); // QQ婊氬姩鐗规晥 $(document).ready(function(){ $(".online_qq").floatadv(); }); jQuery.fn.floatadv = function(loaded) { var obj = this; body_height = parseInt($(window).height()); block_height = parseInt(obj.height()); top_position = parseInt((body_height/2) - (block_height/2) + $(window).scrollTop()); if (body_height>n)&1; } function e2c() { TheDate= (arguments.length!=3) ? new Date() : new Date(arguments[0],arguments[1],arguments[2]); var total,m,n,k; var isEnd=false; var tmp=TheDate.getFullYear(); total=(tmp-1921)*365+Math.floor((tmp-1921)/4)+madd[TheDate.getMonth()]+TheDate.getDate()-38; if (TheDate.getYear()%4==0&&TheDate.getMonth()>1) { total++;} for(m=0;;m++) { k=(CalendarData[m]<0xfff)?11:12; for(n=k;n>=0;n--) { if(total<=29+GetBit(CalendarData[m],n)) { isEnd=true; break; } total=total-29-GetBit(CalendarData[m],n); } if(isEnd) break; } cYear=1921 + m; cMonth=k-n+1; cDay=total; if(k==12) { if(cMonth==Math.floor(CalendarData[m]/0x10000)+1) { cMonth=1-cMonth; } if(cMonth>Math.floor(CalendarData[m]/0x10000)+1) { cMonth--; } }} function GetcDateString(){ var tmp=""; tmp+=tgString.charAt((cYear-4)%10); tmp+=dzString.charAt((cYear-4)%12); tmp+="骞 "; if(cMonth<1) { tmp+="(闂?"; tmp+=monString.charAt(-cMonth-1); } else {tmp+=monString.charAt(cMonth-1);} tmp+="鏈?; tmp+=(cDay<11)?"鍒?:((cDay<20)?"鍗?:((cDay<30)?"寤?:"涓夊崄")); if (cDay%10!=0||cDay==10) { tmp+=numString.charAt((cDay-1)%10); } return tmp;} function GetLunarDay(solarYear,solarMonth,solarDay){ if (solarYear<1921 || solarYear>2020) { return ""; } else { solarMonth = (parseInt(solarMonth)>0) ? (solarMonth-1) : 11; e2c(solarYear,solarMonth,solarDay); return GetcDateString(); } } var D=new Date(); var yy=D.getFullYear(); var mm=D.getMonth()+1; var dd=D.getDate(); var ww=D.getDay(); var ss=parseInt(D.getTime() / 1000); function getFullYear(d){// 淇firefox涓媦ear閿欒 yr=d.getYear();if(yr<1000) yr+=1900;return yr;} function showDate() { //var sValue = getFullYear(dNow)+"骞?+(dNow.getMonth()+1)+"鏈?+dNow.getDate()+"鏃?+" "+sWeek[dNow.getDay()]+" "; var sValue =""; sValue+=GetLunarDay(yy,mm,dd); document.getElementById("pDate").innerHTML = sValue; }; window.onload=showDate; window.onload=showDate;