$(function() { //header slide $(".ui-dropdown").hover(function(){ $(".header_evm").stop().slideToggle(500) }); //banner if(jQuery(".BanerSlider").length) { $(".BanerSlider").slide({ titCell: ".hd ul", mainCell: ".bd ul", effect: "left", autoPage: true, effect: "leftLoop", autoPlay: true, delayTime: 700 }); } if(jQuery(".InfoSlider").length) { $(".InfoSlider").slide({ titCell: ".hd ul", mainCell: ".bd ul", effect: "left", autoPage: true, effect: "leftLoop", autoPlay: true, delayTime: 700 }); } if(jQuery(".txtScroll-top").length) { jQuery(".txtScroll-top").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"topLoop",autoPlay:true,vis:12}); } if(jQuery(".busScroll-left").length) { jQuery(".busScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"leftLoop",autoPlay:true,vis:1,interTime:5000}); } if(jQuery(".Hot_tab").length) { jQuery(".Hot_tab").slide({}); } if(jQuery(".Hot_city").length) { jQuery(".Hot_city").slide({}); } if(jQuery(".Hot_link").length) { jQuery(".Hot_link").slide({}); } if(jQuery(".Info_slider").length) { jQuery(".Info_slider").slide({}); } if(jQuery(".Store_slider").length) { jQuery(".Store_slider").slide({}); } if(jQuery(".Company_slider").length) { jQuery(".Company_slider").slide({trigger:"click"}); } if(jQuery(".Info_mange").length) { jQuery(".Info_mange").slide({}); } if(jQuery(".picMarquee-left").length) { jQuery(".picMarquee-left").slide({mainCell:".bd ul",autoPlay:true,effect:"leftMarquee",vis:5,interTime:50,trigger:"click"}); } //index nav $(".ailsa-nav-ul li").hover( function(){ $(this).find(".Anav-title").attr("class","Anav-title ailse-thisnav"); $(this).find(".Anav-title").find("em").css({"background-position-x":'-55px'},200); $(this).find(".Anav-sub").show(); $(this).find(".Anav-subB").show(); $('.ailsa-nav').removeClass('overflowhide'); }, function(){ $(this).find(".Anav-title").attr("class","Anav-title"); $(this).find(".Anav-title").find("em").animate({"background-position-x":'-15px'},200); $(this).find(".Anav-sub").hide(); $(this).find(".Anav-subB").hide(); $('.ailsa-nav').addClass('overflowhide'); } ); $(".more_btn").on('click',function(){ if($(this).prev().hasClass("overhiden")){ $(this).prev().removeClass("overhiden"); }else{ $(this).prev().addClass("overhiden"); } }); $(".store_down").on('click',function(){ if($(this).hasClass("store_down")){ $(this).removeClass("store_down").addClass("store_up"); $(this).next('ul').slideDown(); }else{ $(this).removeClass("store_up").addClass("store_down"); $(this).next('ul').slideUp(); } }); $(".Left_silder_section li a").each(function(){ $this = $(this); url = String(window.location); if (url.indexOf($this.attr('href')) != -1) { $this.parent().addClass("current"); $this.parents('.Left_silder_section').find('div.store_down').click(); } }); $(".company_intro_btn").on('click',function(){ $(".company_intro").remove(); }); //*********************************************************************************** //index 公告 $(".forum_nav span").click(function() { var $click = $('.forum_nav span'); var $tabcon = $('.forum_mian .forum_con'); var $this = $(this); var $t = $this.index(); $click.removeClass("cur"); $this.addClass('cur'); $tabcon.hide(); $tabcon.eq($t).show(); }) //index 右侧导航 $(".fix-btn-group li").hover(function(){ $(this).find("span").stop(false,true).animate({"width":"85px"},200); },function(){ $(this).find("span").stop(false,true).animate({"width":"0"},200); }); $(".icon-qrcode").hover(function() { $(".fix-erweima").stop().show(500) }, function() { $(".fix-erweima").stop().hide(500) }) // $(".details-main-m .peisong dt").click(function(){ $(".m-select dd.ps_region").slideToggle(500) }); // $(".opera_select").hover(function(){ $(".opera_select div").slideToggle(500) }); // $(".goods_category .btn_huise").click(function(){ $(".goods_spec").slideToggle(500) }); $(".icon-arrow-up").click(function() { $('html,body').animate({ scrollTop: '0px' }, 800) }) $(".panel-heading").click(function(){ $(this).next(".panel-collapse").slideToggle(500); }); $(".gw2_addrcon_top").click(function(){ $("#address_form").slideToggle(500); }); $(".see_icon").hover(function(){ $(".see_Evm").slideToggle(500) }); $(".fl_tab li").click(function() { var $click = $('.fl_tab li'); var $tabcon = $('.ss_f1_phb .fl_tab_div'); var $this = $(this); var $t = $this.index(); $click.removeClass("fl_current"); $this.addClass('fl_current'); $tabcon.hide(); $tabcon.eq($t).show(); }); $(".News_con .title span").click(function() { var $click = $('.News_con .title span'); var $tabcon = $('.News_con .News_detial'); var $this = $(this); var $t = $this.index(); $click.removeClass("cur"); $this.addClass('cur'); $tabcon.hide(); $tabcon.eq($t).show(); }); // $(".HotShop_head .HotShop_tab").click(function() { var $click = $('.HotShop_head .HotShop_tab'); var $tabcon = $('.HotShop_box ul'); var $this = $(this); var $t = $this.index(); $click.removeClass("active"); $this.addClass('active'); $tabcon.hide(); $tabcon.eq($t).show(); }); $(".add").click(function(){ $(this).prev().val(parseInt($(this).prev().val())+1); }); $(".min").click(function(){ if(parseInt($(this).next().val())<2){ alert("数量不能为零!"); }else{ $(this).next().val(parseInt($(this).next().val())-1); } }); }); function selectAll(){ if ($("#SelectAll").attr("checked")) { $(":checkbox").attr("checked", true); } else { $(":checkbox").attr("checked", false); } } //子复选框的事件 function setSelectAll(){ //当没有选中某个子复选框时,SelectAll取消选中 if (!$("#subcheck").checked) { $("#SelectAll").attr("checked", false); } var chsub = $("input[type='checkbox'][id='subcheck']").length; //获取subcheck的个数 var checkedsub = $("input[type='checkbox'][id='subcheck']:checked").length; //获取选中的subcheck的个数 if (checkedsub == chsub) { $("#SelectAll").attr("checked", true); } }