$(function(){ /*start*/ /*nav*/ var nav = $("#c_static_001-1649658909958 .e_container-7,#c_static_001-1649658909958 .e_navigationf-3,#c_static_001-1649658909958 .e_container-14,#c_static_001-1649658909958 .e_image-8,#c_static_001-1649658909958 .e_image-10,.version,#c_static_001-1649658909958 .e_quicklogin-12"); var headnotchageid =["d7536e5b-27d9-4cd6-9ef6-1e14b9b71d5b"]; if(headnotchageid.indexof($("body").attr("data-pageid")) > -1){ nav.addclass("fixed headnotchage"); } var win = $(window); //得到窗口对象 var sc = $(document); //得到document文档对象。 win.scroll(function () { if (sc.scrolltop() >= 10) { nav.addclass("fixed"); $("#c_static_001-1649658909958 .e_container-6").addclass("fixed"); $(".tnavbox").addclass("setheight"); } else { if(!nav.hasclass("headnotchage")){ nav.removeclass("fixed"); $("#c_static_001-1649658909958 .e_container-6").removeclass("fixed"); $(".tnavbox").removeclass("setheight"); } } }) $("#c_static_001-1649658909958 .e_container-7").mouseenter(function(){ if (sc.scrolltop() < 10) { nav.addclass("fixed"); } }) $("#c_static_001-1649658909958 .e_container-7").mouseleave(function(){ if (sc.scrolltop() < 10) { nav.removeclass("fixed"); } }) $('.navbtn').on('click',function(){ $(this).siblings('.tnav').toggleclass('tnavheight'); }); $('.navslibtn').on('click',function(){ $('.tnav').removeclass('tnavheight'); }); $('.tnavh > .iconjt').on('click',function(){ $(this).toggleclass('iconjtrotate') .parents('.navli').siblings('.navli') .find('.slidbox').slideup().end() .find('.tnavh').removeclass('tnavhbac').end() .find('.iconjt').removeclass('iconjtrotate').end().end().end() .parent('.tnavh').addclass('tnavhbac').siblings('.slidbox').slidetoggle(); }); $('.navsli > .iconjt').on('click',function(){ $(this).toggleclass('iconjtrotate'); $(this).parents('.navsli').find('ul').slidetoggle(); }); var wow = new wow({ boxclass: 'wow', //需要执行动画的元素的 class animateclass: 'animated', //animation.css 动画的 class offset: 0, //距离可视区域多少开始执行动画 mobile: true, //是否在移动设备上执行动画 live: true //异步加载的内容是否有效 }); wow.init(); $(".delay_list .p_loopitem").each(function(i){ $(this).attr({"data-wow-delay":i*0.2+'s'}); }) /*end*/ })