js

var K=$("#j_aboutt"),L=$(".downlist_nav"),M=!1;K.hover(function(){0!=M&&(clearTimeout(M),M=!1),M=setTimeout(function(){L.slideDown({easing:a,queue:!1})},200)},function(){0!=M&&(clearTimeout(M),M=!1),M=setTimeout(function(){L.slideUp({easing:a,queue:!1})},200)}),L.hover(function(){0!=M&&(clearTimeout(M),M=!1),M=setTimeout(function(){L.slideDown({easing:a,queue:!1})},200)},function(){0!=M&&(clearTimeout(M),M=!1),M=setTimeout(function(){L.slideUp({easing:a,queue:!1})},200)}),$(".booking").animate({top:20},{duration:1e3,queue:!1,easing:a}),$(".slogan").animate({"margin-top":-122},{duration:1e3,queue:!1,easing:a}),j.css({height:i}),k.elemAutoSize(h,i),l.css({top:i-80}),n.eq(0).css("margin-top",i*-.16),n.eq(2).css("margin-top",i*-.038),n.eq(4).css("margin-top",.069*i),n.eq(6).css("margin-top",.183*i),n.eq(8).css("margin-top",.292*i),n.eq(1).css("margin-top",i*-.16),n.eq(3).css("margin-top",i*-.038),n.eq(5).css("margin-top",.069*i),n.eq(7).css("margin-top",.183*i),n.eq(9).css("margin-top",.292*i);var O=function(){7>d&&(c=1,d++,g.animate({top:-(d-1)*i},{duration:b,queue:!1,easing:a,complete:function(){c=0}}),1==d?(l.animate({top:i-80},{duration:b,queue:!1,easing:a}),L.css({top:"auto",bottom:80})):L.css({top:80,bottom:"auto"}),d>1&&l.animate({top:0},{duration:b,queue:!1,easing:a}),2==d?o():p(),3==d?t():u(),4==d?z():A(),5==d?C():D(),6==d?H():I())},P=function(){d>1&&(c=1,d--,g.animate({top:-(d-1)*i},{duration:b,queue:!1,easing:a,complete:function(){c=0}}),1==d?(l.animate({top:i-80},{duration:b,queue:!1,easing:a}),L.css({top:"auto",bottom:80})):L.css({top:80,bottom:"auto"}),2==d?o():p(),3==d?t():u(),4==d?z():A(),5==d?C():D(),6==d?H():I())};if(f.on("mousewheel",function(a,b){return c?!1:(0>b?O():b>0&&P(),void 0)}),m.click(function(){d=$(this).index(),O()}),document.onkeydown=function(a){var b=a||window.event;return 40==b.keyCode?(O(),!1):38==b.keyCode?(P(),!1):void 0},$(".select_div").length>0){var Q,R,S;$(".select_div").hover(function(){$(this).find(".select_div_bd").show()},function(){$(this).find(".select_div_bd").hide()}),$(".select_div_bd a").on("click",function(){Q=$(this),R=Q.html(),S=Q.attr("data-id"),Q.parent().siblings(".select_div_hd").html(R),Q.parent().siblings(".select_div_input").val(S),Q.parent().hide()})}var T=null;$(window).on("resize",function(){T&&clearTimeout(T),T=setTimeout(function(){h=e.width(),i=e.height(),j.css({height:i}),k.elemAutoSize(h,i),g.animate({top:-(d-1)*i},{duration:b,queue:!1,easing:a,complete:function(){c=0}}),1==d&&l.animate({top:i-80},{duration:b,queue:!1,easing:a}),n.eq(0).css("margin-top",i*-.16),n.eq(2).css("margin-top",i*-.038),n.eq(4).css("margin-top",.069*i),n.eq(6).css("margin-top",.183*i),n.eq(8).css("margin-top",.292*i),n.eq(1).css("margin-top",i*-.16),n.eq(3).css("margin-top",i*-.038),n.eq(5).css("margin-top",.069*i),n.eq(7).css("margin-top",.183*i),n.eq(9).css("margin-top",.292*i)},200)})},isload=0;$(function(){$(".screen_md").length>0&&setTimeout(function(){0==isload&&(isload=1,indexAnimate())},3e3)}),windo

js相关文档

最新文档

返回顶部