$(function () { //6165con登录平台第一部分 $(".first_left ul li").click(function(){ var index = $(this).index(); $(".first_left ul li").removeClass("hover").eq(index).addClass("hover"); $(".first_right ul").hide().eq(index).show(); }); //6165con登录平台第四部分 $(".zy_four li").hover(function () { $(this).find(".cover").stop(true, true).animate({"opacity": "1"},800); $(this).find(".cover img").stop(true, true).animate({"margin-top": "75px"},800); },function(){ $(this).find(".cover").stop(true, true).animate({"opacity": "0"},600); $(this).find(".cover img").stop(true, true).animate({"margin-top": "-40px"},800); }); //6165con登录平台性别选项 $('label').click(function(){ var radioId = $(this).attr('data'); $('label').removeAttr('class') && $(this).attr('class', 'checked'); $('input[type="radio"]').removeAttr('checked') && $('#' + radioId).attr('checked', 'checked'); }); //内页左菜单点击滚动 $(".left_top ul li").click( function(){ var index = $(this).index(); $(".left_top ul li").removeClass("hover").eq(index).addClass("hover"); $(".zong_right").hide().eq(index).show(); }) //关于我们的滚动 $(".sorllMenu2 ul li").click( function(){ var index = $(this).index(); $(".sorllMenu2 ul li").removeClass("hover").eq(index).addClass("hover"); $(".develop_zi").hide().eq($(this).attr("data")).show(); }) //内页二级菜单 $(".zong_left ul li").hover(function () { var index = $(this).index(); $(".left_hide").hide(); $(this).find(".left_hide").css({"display":"block"}); }); //产品内页 $(".pros_ny a").click( function(){ var index = $(this).index(); $(".pros_ny a").removeClass("hover").eq(index).addClass("hover"); $(".pros_bottom").hide().eq(index).show(); }) //语言,在线 $(".xuze_yy h1 a").click(function () { $(".xuze_yys").slideToggle(); }); $(".xuze_sd h1 a").click(function () { $(".xuze_sds").slideToggle(); }); //鼠标经过产品图时上浮一下 $(".zy_second li").live({ mouseenter: function () { $(this).find("h6").stop(true, true).animate({"margin-top": "-10px"}); }, mouseleave: function () { $(this).find("h6").stop(true, true).animate({"margin-top": "0px"}); } }); //btn跳转 $(".f_middle2_left li").hover(function(){ var index = $(this).index(); $(".f_middle2_left li").removeClass("hover").eq(index).addClass("hover"); $(".in_cont").hide().eq(index).show(); }); //btn跳转 $(".three_middle_left h1").hover(function(){ var index = $(this).index(); $(".three_middle_left h1").removeClass("hover").eq(index).addClass("hover"); $(".three_ny").hide().eq(index).show(); }); //鼠标经过产品图时上浮一下 $(".five_bottom li").live({ mouseenter: function () { $(this).stop(true, true).animate({"margin-top": "-10px"}); }, mouseleave: function () { $(this).stop(true, true).animate({"margin-top": "0px"}); } }); $(".bo").click(function(){ $(this).next(".czem_a_cont").slideToggle(); $(this).find(".a span").toggleClass("cz_current"); }); //产品三级栏目 $(function(){ //navigation $(".pro_left li").hover(function() { var czlen=$(this).find(".nav_s a").length; var czhei=czlen*41; $(this).find('.nav_ul').stop().show().animate({height:czhei},1000); }, function() { $(this).find('.nav_ul').stop().animate({height:0},500,function(){$(this).hide()}); }); }); $(".pro_left li").hover(function () { $(this).find(".nav_s").show(); },function(){ $(this).find(".nav_s").hide(); }); //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(); }); //服务支持 $(".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) }) });