m no-repeat'); $('.othercolor').css('background','#e5212d'); break; case '5': $('.kf_btn').css('background','url("/template/default/images/kf/kefu_cheng.png") left 33px no-repeat'); $('.top_bg').css('background','url("/template/default/images/kf/cheng1.png") left bottom no-repeat'); $('.othercolor').css('background','#e65a22'); break; case '6': $('.kf_btn').css('background','url("/template/default/images/kf/green.png") left 33px no-repeat'); $('.top_bg').css('background','url("/template/default/images/kf/green1.png") left bottom no-repeat'); $('.othercolor').css('background','#78cf1b'); break; } } var _windowScrollTop=0; //滚动条距离顶端距离 var _windowWidth=$(window).width(); //窗口宽度 $(window).scroll(actionEvent).resize(actionEvent); //监听滚动条事件和窗口缩放事件 //响应事件 function actionEvent(){ _windowScrollTop = $(window).scrollTop(); //获取当前滚动条高度 // _windowWidth=$(window).width();//获取当前窗口宽度 moveQQonline();//移动面板 } //移动面板 function moveQQonline(){ //.stop()首先将上一次的未完事件停止,否则IE下会出现慢速僵死状态,然后重新设置面板的位置。 $(".kf").stop().animate({ top: _windowScrollTop+100 }, "fast"); $('.alignCenter').stop().animate({ top: _windowScrollTop+133 }, "fast"); } $(".kf_btn").toggle( function() { $('.open').addClass('close'); $('.alignCenter').hide(); $(".kf_main").animate({width:'hide',opacity:'hide'},'normal',function(){ $(".kf_main").hide(); var href="/product/data/images/other/20170817142300_447.jpg"; if(href=/product/=/index.html""){ $(".code").css("display","none"); }else{ $('.e_code img').animate({width:'hide',opacity:'hide'}); } }); }, function(){ $('.open').removeClass('close'); $(".kf_main").animate({opacity:'show'},'normal',function(){ $(".kf_main").show(); var href="/product/data/images/other/20170817142300_447.jpg"; if(href=/product/=/index.html""){ $(".code").css("display","none"); }else{ $('.e_code img').animate({opacity:'show'}); } }); } ); $('#hidden_share').click(function(){ $('.alignCenter').show(); }) $('.alignCenter .title img').click(function(){ $('.alignCenter').hide(); })
意甲彩|晋城塑料软包装-西安森盛包装有限公司