$(".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:'70', marginLeft: '-10', marginRight: '-10', }, 100) }, function () { $(this).stop(true).animate({ marginLeft: 0, marginRight: 0, height:'70', // width: 583.4 }, 100); }); //main_more $('.main_more').hover(function () { $('.more', this).stop().fadeIn(100); $('.more', this).stop().animate({ 'top': '5px' }, 400); }, function () { $('.more', this).stop().fadeOut(100); $('.more', this).stop().animate({ 'top': '-18px' }, 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') })