function mouwl() { if ($(window).width() > 1200) { $(".header_wrap").mousewheel(function(event, delta, deltaX, deltaY){ if(delta<0){ $(".master").addClass("showdiv"); $(".header_wrap").removeClass("showdiv"); } }); $(".master").mousewheel(function(event, delta, deltaX, deltaY){ if(delta>0 && $(".master").scrollTop()==0){ $(".header_wrap").addClass("showdiv"); $(".master").removeClass("showdiv"); } }); } else { $(".header_wrap").removeClass("showdiv"); } } mouwl(); $(window).on('resize', function(e) { mouwl(); }); // if (window.matchMedia("(max-width: 768px)").matches) { // $(".nav_down_li").on("touchstart",function () { // $(this).children("a").addClass("mya") // $(this).children("a").addClass("mya") // },function(){ // $(this).children("a").removeClass("mya") // }); // $(".nav_down_li").on("touchend",function(){ // $(this).children("a").removeClass("mya") // }); // //main1_right // $(".it_expertxt").mouseleave(function () { // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou_write.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou.png') // }else if(imgsrc == './pictures/new_write.png'){ // $(this).find(".myimg").attr('src','./pictures/new.png') // } // }); // $(".it_expertxt").on("touchend",function () { // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou_write.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou.png') // }else if(imgsrc == './pictures/new_write.png'){ // $(this).find(".myimg").attr('src','./pictures/new.png') // } // }); // $(".it_expertxt").on("touchstart",function () { // $(this).find(".main1_right_title").css("color", "#fff"); // $(this).find(".it_experttime").css("color", "#fff"); // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou_write.png') // }else if(imgsrc == './pictures/new.png'){ // $(this).find(".myimg").attr('src','./pictures/new_write.png') // } // $(this).animate({ // // width: 920, // height:'.7rem', // marginLeft: '-0.1rem', // marginRight: '-0.1rem', // }, 100) // }); // $(".it_expertxt").on("touchend", function () { // var div = $(this).find(".main1_right_title"); // $(this).find(".main1_right_title").css("color", "#434343"); // $(this).find(".it_experttime").css("color", "#7d858c"); // $(this).stop(true).animate({ // marginLeft: 0, // marginRight: 0, // height:'.7rem', // // width: 583.4 // }, 100); // }); // //main_more // $('.main_more').on("touchstart",function () { // $('.more', this).stop().fadeIn(100); // $('.more', this).stop().animate({ 'top': '.05rem' }, 400); // }, function () { // $('.more', this).stop().fadeOut(100); // $('.more', this).stop().animate({ 'top': '-0.18rem' }, 400); // }); // $('.main_more').on("touchend", function () { // $('.more', this).stop().fadeOut(100); // $('.more', this).stop().animate({ 'top': '-0.18rem' }, 400); // }); // //main2_left // $(".it2_expertit").on("touchstart",function () { // $(this).find(".myimg_2").attr('src','./pictures/jiantou_write.png') // $(this).find(".myimg_3").attr('src','./pictures/jiantou_write.png') // $(this).find(".myimg_4").attr('src','./pictures/jiantou_write.png') // }); // $(".it2_expertit").on("touchend",function () { // $(this).find(".myimg_2").attr('src','./pictures/jiantou.png') // $(this).find(".myimg_3").attr('src','./pictures/jiantou.png') // $(this).find(".myimg_4").attr('src','./pictures/jiantou.png') // }) // } else { // $(".nav_down_li").hover(function () { // $(this).children("a").addClass("mya") // $(this).children("a").addClass("mya") // },function(){ // $(this).children("a").removeClass("mya") // }); // $(".list_list_ul_li").hover(function () { // $(this).removeClass("list_list_ul_li"); // $(this).addClass("list_list_ul_li_hover"); // $(this).children("a").css("color", "#fff"); // },function(){ // $(this).removeClass("list_list_ul_li_hover"); // $(this).addClass("list_list_ul_li"); // $(this).children("a").css("color", "#333"); // }); // //main1_right // $(".it_expertxt").mouseleave(function () { // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou_write.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou.png') // }else if(imgsrc == './pictures/new_write.png'){ // $(this).find(".myimg").attr('src','./pictures/new.png') // } // }); // $(".it_expertxt").hover(function () { // $(this).find(".main1_right_title").css("color", "#fff"); // $(this).find(".it_experttime").css("color", "#fff"); // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou_write.png') // }else if(imgsrc == './pictures/new.png'){ // $(this).find(".myimg").attr('src','./pictures/new_write.png') // } // }, function () { // var div = $(this).find(".main1_right_title"); // $(this).find(".main1_right_title").css("color", "#434343"); // $(this).find(".it_experttime").css("color", "#7d858c"); // }); // $(".it_expertxt").hover(function () { // $(this).animate({ // // width: 920, // height:'.7rem', // marginLeft: '-0.1rem', // marginRight: '-0.1rem', // }, 100) // }, function () { // $(this).stop(true).animate({ // marginLeft: 0, // marginRight: 0, // height:'.7rem', // // width: 583.4 // }, 100); // }); // //main_more // $('.main_more').hover(function () { // $('.more', this).stop().fadeIn(100); // $('.more', this).stop().animate({ 'top': '.05rem' }, 400); // }, function () { // $('.more', this).stop().fadeOut(100); // $('.more', this).stop().animate({ 'top': '-0.18rem' }, 400); // }); // //main2_left // $(".it2_expertit").hover(function () { // $(this).find(".myimg_2").attr('src','./pictures/jiantou_write.png') // $(this).find(".myimg_3").attr('src','./pictures/jiantou_write.png') // $(this).find(".myimg_4").attr('src','./pictures/jiantou_write.png') // }); // $(".it2_expertit").mouseleave(function () { // $(this).find(".myimg_2").attr('src','./pictures/jiantou.png') // $(this).find(".myimg_3").attr('src','./pictures/jiantou.png') // $(this).find(".myimg_4").attr('src','./pictures/jiantou.png') // }) // } $(".selectBut").click(function() { $(".navm-box").toggleClass("act"); $("body").toggleClass("navShow"); if($(".selectBut").hasClass("hd1-aon1")) { $(this).removeClass("hd1-aon1"); $(".masklayer").hide() } else { $(this).addClass("hd1-aon1"); $(".masklayer").fadeIn("slow") } }) $(".nav-wrap .icon-jia").click(function(){ if($(this).parent().find("dl").is(":hidden")){ $(this).parent().find("dl").show(500); $(this).css("transform","rotate(180deg)") }else{ $(this).parent().find("dl").hide(500); $(this).css("transform","rotate(0deg)") } }); //main_more $('.main_more').hover(function () { $('.more', this).stop().fadeIn(100); $('.more', this).stop().animate({ 'top': '.05rem' }, 400); }, function () { $('.more', this).stop().fadeOut(100); $('.more', this).stop().animate({ 'top': '-0.18rem' }, 400); }); // $(".it_expertxt").mouseleave(function () { // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou_write.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou.png') // }else if(imgsrc == './pictures/new_write.png'){ // $(this).find(".myimg").attr('src','./pictures/new.png') // } // }); // $(".it_expertxt").hover(function () { // $(this).find(".main1_right_title").css("color", "#fff"); // $(this).find(".it_experttime").css("color", "#fff"); // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou_write.png') // }else if(imgsrc == './pictures/new.png'){ // $(this).find(".myimg").attr('src','./pictures/new_write.png') // } // }, function () { // var div = $(this).find(".main1_right_title"); // $(this).find(".main1_right_title").css("color", "#434343"); // $(this).find(".it_experttime").css("color", "#7d858c"); // }); // console.log(navigator.userAgent) // if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { // $(".nav_down_li").on("touchstart",function () { // $(this).children("a").addClass("mya") // $(this).children("a").addClass("mya") // },function(){ // $(this).children("a").removeClass("mya") // }); // $(".nav_down_li").on("touchend",function(){ // $(this).children("a").removeClass("mya") // }); // //main1_right // $(".it_expertxt").mouseleave(function () { // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou_write.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou.png') // }else if(imgsrc == './pictures/new_write.png'){ // $(this).find(".myimg").attr('src','./pictures/new.png') // } // }); // $(".it_expertxt").on("touchend",function () { // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou_write.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou.png') // }else if(imgsrc == './pictures/new_write.png'){ // $(this).find(".myimg").attr('src','./pictures/new.png') // } // }); // $(".it_expertxt").on("touchstart",function () { // $(this).find(".main1_right_title").css("color", "#fff"); // $(this).find(".it_experttime").css("color", "#fff"); // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou_write.png') // }else if(imgsrc == './pictures/new.png'){ // $(this).find(".myimg").attr('src','./pictures/new_write.png') // } // $(this).animate({ // // width: 920, // height:'.7rem', // marginLeft: '-0.1rem', // marginRight: '-0.1rem', // }, 100) // }); // $(".it_expertxt").on("touchend", function () { // var div = $(this).find(".main1_right_title"); // $(this).find(".main1_right_title").css("color", "#434343"); // $(this).find(".it_experttime").css("color", "#7d858c"); // $(this).stop(true).animate({ // marginLeft: 0, // marginRight: 0, // height:'.7rem', // // width: 583.4 // }, 100); // }); // //main_more // $('.main_more').on("touchstart",function () { // $('.more', this).stop().fadeIn(100); // $('.more', this).stop().animate({ 'top': '.05rem' }, 400); // }, function () { // $('.more', this).stop().fadeOut(100); // $('.more', this).stop().animate({ 'top': '-0.18rem' }, 400); // }); // $('.main_more').on("touchend", function () { // $('.more', this).stop().fadeOut(100); // $('.more', this).stop().animate({ 'top': '-0.18rem' }, 400); // }); // //main2_left // $(".it2_expertit").on("touchstart",function () { // $(this).find(".myimg_2").attr('src','./pictures/jiantou_write.png') // $(this).find(".myimg_3").attr('src','./pictures/jiantou_write.png') // $(this).find(".myimg_4").attr('src','./pictures/jiantou_write.png') // }); // $(".it2_expertit").on("touchend",function () { // $(this).find(".myimg_2").attr('src','./pictures/jiantou.png') // $(this).find(".myimg_3").attr('src','./pictures/jiantou.png') // $(this).find(".myimg_4").attr('src','./pictures/jiantou.png') // }) // } else { // $(".nav_down_li").hover(function () { // $(this).children("a").addClass("mya") // $(this).children("a").addClass("mya") // },function(){ // $(this).children("a").removeClass("mya") // }); // $(".list_list_ul_li").hover(function () { // $(this).removeClass("list_list_ul_li"); // $(this).addClass("list_list_ul_li_hover"); // $(this).children("a").css("color", "#fff"); // },function(){ // $(this).removeClass("list_list_ul_li_hover"); // $(this).addClass("list_list_ul_li"); // $(this).children("a").css("color", "#333"); // }); // //main1_right // $(".it_expertxt").mouseleave(function () { // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou_write.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou.png') // }else if(imgsrc == './pictures/new_write.png'){ // $(this).find(".myimg").attr('src','./pictures/new.png') // } // }); // $(".it_expertxt").hover(function () { // $(this).find(".main1_right_title").css("color", "#fff"); // $(this).find(".it_experttime").css("color", "#fff"); // var imgsrc = $(this).find(".myimg").attr('src') // if(imgsrc == './pictures/jiantou.png'){ // $(this).find(".myimg").attr('src','./pictures/jiantou_write.png') // }else if(imgsrc == './pictures/new.png'){ // $(this).find(".myimg").attr('src','./pictures/new_write.png') // } // }, function () { // var div = $(this).find(".main1_right_title"); // $(this).find(".main1_right_title").css("color", "#434343"); // $(this).find(".it_experttime").css("color", "#7d858c"); // }); // $(".it_expertxt").hover(function () { // $(this).animate({ // // width: 920, // height:'.7rem', // marginLeft: '-0.1rem', // marginRight: '-0.1rem', // }, 100) // }, function () { // $(this).stop(true).animate({ // marginLeft: 0, // marginRight: 0, // height:'.7rem', // // width: 583.4 // }, 100); // }); // //main_more // $('.main_more').hover(function () { // $('.more', this).stop().fadeIn(100); // $('.more', this).stop().animate({ 'top': '.05rem' }, 400); // }, function () { // $('.more', this).stop().fadeOut(100); // $('.more', this).stop().animate({ 'top': '-0.18rem' }, 400); // }); // //main2_left // $(".it2_expertit").hover(function () { // $(this).find(".myimg_2").attr('src','./pictures/jiantou_write.png') // $(this).find(".myimg_3").attr('src','./pictures/jiantou_write.png') // $(this).find(".myimg_4").attr('src','./pictures/jiantou_write.png') // }); // $(".it2_expertit").mouseleave(function () { // $(this).find(".myimg_2").attr('src','./pictures/jiantou.png') // $(this).find(".myimg_3").attr('src','./pictures/jiantou.png') // $(this).find(".myimg_4").attr('src','./pictures/jiantou.png') // }) // }