// javascript document $(function () { //客服-返回顶部 $(".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": "-65px" }, 300); } else { $(this).stop(true, false).animate({ "width": "110px" }, 300); } }, function () { if (navigator.appname == "microsoft internet explorer" && navigator.appversion.split(";")[1].replace(/[ ]/g, "") == "msie7.0") { $(this).stop(true, false).animate({ "width": "39px", "left": "0" }, 300); } else { $(this).stop(true, false).animate({ "width": "39px" }, 300); } }) $(".qq_czab").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": "-95px" }, 300); } else { $(this).stop(true, false).animate({ "width": "140px" }, 300); } }, function () { if (navigator.appname == "microsoft internet explorer" && navigator.appversion.split(";")[1].replace(/[ ]/g, "") == "msie7.0") { $(this).stop(true, false).animate({ "width": "39px", "left": "0" }, 300); } else { $(this).stop(true, false).animate({ "width": "39px" }, 300); } }) $(".qq_czb").hover(function () { $(".erweima").show(50) }, function () { $(".erweima").hide(50) }) }); $(function(){ var index = 0; var pictimer; var awidth=$(".cz_banner li").width(); var cz_len=$(".cz_banner li").length; $(".cz_bottom a").click(function(){ index=$(".cz_bottom a").index(this); showpics(index); }); $(".cz_banner").hover(function(){ clearinterval(pictimer); },function(){ pictimer = setinterval(function() { showpics(index); index++; if(index == cz_len) {index = 0;} },2000) }).trigger("mouseleave"); function showpics(index){ $(".cz_banner").find("li").eq(index).fadein().siblings().fadeout(); $(".cz_bottom").find("a").eq(index).addclass("cz_current").siblings().removeclass("cz_current"); } $(".czlyb_cz.a").toggle(function() { $('.cz_gggggg.a').stop().show().animate({height:303},300); }, function() { $('.cz_gggggg.a').stop().animate({height:0},300,function(){$(this).hide()}); }); $(".czlyb_cz.b").toggle(function() { $('.cz_gggggg.b').stop().show().animate({height:303},300); }, function() { $('.cz_gggggg.b').stop().animate({height:0},300,function(){$(this).hide()}); }); $(".pro_pagea_tit a").click(function() { $(".pro_pagea_tit a").removeclass('on').eq($(".pro_pagea_tit a").index(this)).addclass('on'); $(".pro_pagea_cont div").css("display","none").eq($(".pro_pagea_tit a").index(this)).css("display","block") }); var a=0; var alen=$(".cz_jj li").length; var awid=$(".cz_jj li").width(); var awida=(awid+6)*alen; var acha=alen-3; $(".cz_jj ").width(awida) $(".a_left").click(function() { if(a>0){ a-=1; aaa(a); } }); $(".a_right").click(function() { if(a