$(function () { $(".zy_first li").hover(function(){ $(this).find("p").fadeIn(300); $(this).find(".pic").fadeIn(500); },function(){ $(this).find("p").fadeOut(300); $(this).find(".pic").fadeOut(300); }); //btn跳转 $(".zong_left li").click(function(){ var index = $(this).index(); $(".zong_left li").removeClass("hover").eq(index).addClass("hover"); $(".zong_right").hide().eq(index).show(); }); //btn跳转 $(".zong_right_top a").click(function(){ var index = $(this).index(); $(".zong_right_top a").removeClass("hover").eq(index).addClass("hover"); $(".in_cont").hide().eq(index).show(); }); //下拉菜单 $(function(){ //navigation $(".navigation span").hover(function() { var czlen=$(this).find(".nav_ul li").length; var czhei=czlen*36; $(this).find('.nav_ul').stop().show().animate({height:czhei},500); }, function() { $(this).find('.nav_ul').stop().animate({height:0},500,function(){$(this).hide()}); }); }); //鼠标经过产品图时上浮一下 $(".zy_second li").live({ mouseenter: function () { $(this).stop(true, true).animate({"margin-top": "-10px"}); }, mouseleave: function () { $(this).stop(true, true).animate({"margin-top": "0px"}); } }); //鼠标经过产品图时上浮一下 $(".ny_tuijain li").live({ mouseenter: function () { $(this).stop(true, true).animate({"margin-top": "-10px"}); }, mouseleave: function () { $(this).stop(true, true).animate({"margin-top": "0px"}); } }); //btn跳转 $(".dropMenu li p").hover(function(){ var index = $(this).index(); $(".dropMenu li p").removeClass("hover").eq(index).addClass("hover"); $(".xiala").stop(true, true).hide().eq(index).show(); }); $(".bo").click(function(){ $(this).next(".czem_a_cont").slideToggle(); $(this).find(".a span").toggleClass("cz_current"); }); //btn跳转 $(".in_cont li").click(function(){ var index = $(this).index(); $(".in_cont li").removeClass("hover").eq(index).addClass("hover"); $(".zong_right").hide().eq(index).show(); }); //btn跳转 $(".pro_top a").hover(function(){ var index = $(this).index(); $(".pro_top a").removeClass("hover").eq(index).addClass("hover"); $(".tiaoz").hide().eq(index).show(); }); //btn跳转 $(".tiao_zy h2").hover(function(){ var index = $(this).index(); $(".tiao_zy h2").removeClass("hover").eq(index).addClass("hover"); $(".sorllMenu").hide().eq(index).show(); }); //uedbet官网西甲赫支持 $(".in_faq li").click(function () { $(this).find(".in_f_c").slideToggle(); $(this).find('a').toggleClass("hover"); }); //客服 $(".qqkefu .top").click(function(){ $("html,body").animate({"scrollTop":0}, 1000); }) $(window).scroll(function () { var scrollTop = document.body.scrollTop; // if(scrollTop>78){ // $(".top").css({"opacity":"0.95","filter":"alpha(opacity=95)"}) // }else{ // $(".top").css({"opacity":"1","filter":"alpha(opacity=100)"}) // } }) //QQ $(".qq_czaa").hover(function(){ var idw=this.id; if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE7.0") { $(this).stop(true,false).animate({width:idw,"left":"-85px"}, 300); } else{ $(this).stop(true,false).animate({"width":"160px"}, 300); } },function(){ if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion .split(";")[1].replace(/[ ]/g,"")=="MSIE7.0") { $(this).stop(true,false).animate({"width":"45px","left":"0"}, 300); } else{ $(this).stop(true,false).animate({"width":"45px"}, 300); } }) $(".qq_czb").hover(function(){ $(".erweima").show(50) },function(){ $(".erweima").hide(50) }) });