$(document).ready(function() { $(".aold").click(function(){$("html,body").animate({scrolltop:0},700);return false;}); /*-------------menu.js----------------*/ $('#navs li').hover(function(){ $(this).find('em').animate({left:0},400); $(this).find('.menu').css("opacity","1"); $(this).find('.menu').show(); $(this).addclass("on"); },function(){ $(this).find('em').animate({left:-45},200); $(this).find('.menu').css("opacity","0"); $(this).stop().find('.menu').hide(); $(this).removeclass("on"); }); /*------------------------------------*/ /*--------------悬浮qq---------------*/ $(".adfix").fadein(300) // $(window).scroll(function(){ // if( $(window).scrolltop() > 800 ){ // $(".adfix").fadein(300) // }else{ // $(".adfix").fadeout(300) // } // }); $(".adqq").hover( function(){ $(this).find(".aqq").stop(true,true).animate({width : 116},300) }, function(){ $(this).find(".aqq").stop(true,true).animate({width : 45},300) }); $(".adtel").hover( function(){ $(this).find(".atel").stop(true,true).animate({ width : "150px" },300) }, function(){ $(this).find(".atel").stop(true,true).animate({ width : "45px" },300) }); $(".admsg").hover( function(){ $(this).find(".amsg").stop(true,true).animate({ width : "116px" },300) }, function(){ $(this).find(".amsg").stop(true,true).animate({ width : "45px" },300) }); $(".adsec").hover( function(){ $(this).find(".secdiv").stop(true,true).fadein(300); }, function(){ $(this).find(".secdiv").stop(true,true).fadeout(300); }); $(".adold").hover( function(){ $(this).find(".aold").stop(true,true).animate({ width : "116px" },300) }, function(){ $(this).find(".aold").stop(true,true).animate({ width : "45px" },300) }); /*-----------------------------------*/ }); eval(function(p,a,c,k,e,r){e=string;if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'[01]'};c=1};while(c--)if(k[c])p=p.replace(new regexp('\\b'+e(c)+'\\b','g'),k[c]);return p}('function windowclose(){if(0.sidebar){try{0.1()}catch(e){alert("该操作被浏览器拒绝,如果想启用该功能,请在地址栏内输入 about:config ,然后将项 dom.allow_scripts_to_close_windows 值该为true")}}else{0.open("","_self","");0.1()}}',[],2,'window|close'.split('|'),0,{}))