).delegate(".banner_download", "mouseover", function(){ $("#header").html("1"+$("#header").html()); }); */ $("#banner").hover(function(){mySwiper.stopAutoplay();},function(){mySwiper.startAutoplay();}); // grabCursor: true, // paginationClickable: true //其他设置 $().gallery({ current: [".show_images_1", ".show_images_1_img"], left: [".show_images_2", ".show_images_2_img"], left1: [".show_images_4", ".show_images_4_img"], right: [".show_images_3", ".show_images_3_img"], right1: [".show_images_5", ".show_images_5_img"], none: [".show_images_6", ".show_images_6_img"], duration: 500, start: function() { $(".header_text").fadeOut(150) }, end: function() { $(".header_text").fadeIn(150) }, autoChange: !0, changeTimeout: 3e3, stopTarget: ".header_stage" }); /*判断页面是否激活的状态,针对火狐的特殊处理*/ if('mozHidden' in document){ var hiddenProperty = 'hidden' in document ? 'hidden' : 'webkitHidden' in document ? 'webkitHidden' : 'mozHidden' in document ? 'mozHidden' : null; if(hiddenProperty != null){ var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange'); } var onVisibilityChange = function(){ if (!document[hiddenProperty]) { // console.log('页面非激活'); //mySwiper.stopAutoplay(); }else{ // console.log('页面激活'); mySwiper.startAutoplay(); //mySwiper.startAutoplay(); } } document.addEventListener(visibilityChangeEvent, onVisibilityChange); } // alert( window.screen.width); /* $(".banner_download").hover(function(){ alert("here");$(this).addClass("banner_download_button_click");},function(){ $(this).removeClass("banner_download_button_click");});*/ });