// javascript document //页面滚动给header加上box-shadow:1px 1px 3px #cccccc; //$(window).bind("scroll",function() { // $(".header").css("box-shadow","1px 1px 3px #cccccc"); //}); $(window).scroll(function() { $(".header").css("box-shadow","1px 1px 3px #cccccc"); }); //导航色块消失 //$(function(){ // $(".nav ul li").hover(function(){ // $(".nav ul li").removeclass("cur"); // }); //}); //回未服务 $(function(){ $(".nr ul li").hover(function(){ $(this).find(".im .th1").animate({top:-150}, 200); $(this).find(".im .th2").animate({top:0}, 200); },function(){ $(this).find(".im .th1").animate({top:0}, 200); $(this).find(".im .th2").animate({top:150}, 200); }); }); //首页众益案例 $(function(){ $(".nr ul li").hover(function(){ $(this).find(".txt").stop().animate({height:"208px"},400); $(this).find(".txt h3").stop().animate({paddingtop:"20px"},400); },function(){ $(this).find(".txt").stop().animate({height:"0"},400); $(this).find(".txt h3").stop().animate({paddingtop:"0px"},400); }); }); //回到顶部 $(function(){ $(window).scroll(function() { if($(window).scrolltop() >= 100){ $('.actgotopq').fadein(300); }else{ $('.actgotopq').fadeout(300); } }); $('.actgotopq').click(function(){ $('html,body').animate({scrolltop: '0px'}, 800);}); }); //众益案例页面 $(function(){ $(".list").hover(function(){ $(this).find(".abc").stop().animate({top:'0'},300); $(this).find(".bg").stop().animate({bottom:'0'},300); },function(){ $(this).find(".abc").stop().animate({top:'-194'},300); $(this).find(".bg").stop().animate({bottom:'-42'},300); }); }); //众益案例页面视频弹窗 function video(){ layer.open({ type: 1, area: ['780px', '600px'], //宽高 content: $('#video'), title:'郑州第一人民医院宣传片' }); } //客服 $(function(){ $(".suspend").mouseover(function() { $(this).stop(); $(this).animate({width: 160}, 400); }); $(".suspend").mouseout(function() { $(this).stop(); $(this).animate({width: 40}, 400); }); });