//灞忚斀鍙抽敭鐩稿叧 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(""); } } //璁句负棣栭〉 function setHomePage() { if(document.all) { var obj = document.links(0); if (obj) { obj.style.behavior = 'url(#default#homepage)'; obj.setHomePage(window.location.href); } } else { if(window.netscape) { try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); } catch (e) { window.alert("姝ゆ搷浣滆娴忚鍣ㄦ嫆缁濓紝璇烽€氳繃娴忚鍣ㄨ彍鍗曞畬鎴愭鎿嶄綔锛?); } } } } //鍔犲叆鏀惰棌 function addFavorite() { var url = document.location.href; var title = document.title; if (document.all) { window.external.addFavorite(url,title); } else if (window.sidebar) { window.sidebar.addPanel(title, url,""); } } //宸﹀彸绛夐珮 function equalHeight(){ var a = $(".sidebar").height(); var b = $(".main").height(); if ( a >= b){ $(".main").height(a); } else if ( a <= b){ $(".sidebar").height(b); } } //绾靛悜鑿滃崟 function Nav(){ var mst; $(".nav li a").filter(".current").parent("li").addClass("cur").siblings().removeClass("cur"); //$(".nav li:last").css("border","none"); $(".nav li").hover(function(){ var _this = $(this); $(this).find("a:eq(0)").addClass("current"); mst = setTimeout(function(){ _this.find(".subNav").slideDown(300); mst = null; },300) },function(){ if(mst!=null) {clearTimeout(mst)}; $(this).not(".cur").find("a:eq(0)").removeClass("current"); $(this).find(".subNav").slideUp(300); }) } //棣栭〉Js $(function(){ // 椤堕儴鎼滅储 $('.big').click(function(){ $('.nav').hide(); $('.search').show(); }); $('.search-input-box input').focus(function(){ $(this).css('border','1px solid #0093dd'); }); $('.search-input-box input').blur(function(){ $(this).css('border','1px solid #ddd'); }); // aArea $('.aArea li').hover(function(){ $(this).find('.s').stop().fadeIn(400, function(){ //$(this).find('.t').animate({bottom:220}); }); },function(){ $(this).find('.s').stop().fadeOut(400,function(){ ///$(this).find('.t').animate({bottom:180}); }); }); })