// javascript docum $(document).ready(function(){ var w=window.innerwidth || document.documentelement.clientwidth || document.body.clientwidth; var h=window.innerheight || document.documentelement.clientheight || document.body.clientheight; /*$(window).resize(function(){ document.title=$(window).width()+","+$(window).height(); if($(window).width()<992){ document.title="平板" } if($(window).width()<767){ document.title="手机" } });*/ /*鼠标滚动导航效果*/ var a=0; $(document).scroll( function(){ /*header*/ var q=$(document).scrolltop(); if(q>60&&a===0){ $(".header_t .top").fadeout(50) $(".header .logo img").css({"height":46}) $(".header .menu1 h2").css({"line-height":70+"px"}) $(".header .others").animate({top:27},400) $(".navbtn").animate({top:25},100) a=1; } if(q<60&&a===1){ $(".header_t .top").fadein(200) $(".header .logo img").css({"height":52}) $(".header .menu1 h2").css({"line-height":76+"px"}) $(".header .others").animate({top:32},400) $(".navbtn").animate({top:30},100) a=0 } }) })