//nav jQuery("#nav").slide({ type:"menu",// 效果类型,针对菜单/导航而引入的参数(默认slide) titCell:".nLi", //鼠标触发对象 targetCell:".sub", //titCell里面包含的要显示/消失的对象 effect:"slideDown", //targetCell下拉效果 delayTime:300 , //效果时间 triggerTime:0, //鼠标延迟触发时间(默认150) returnDefault:true //鼠标移走后返回默认状态,例如默认频道是“预告片”,鼠标移走后会返回“预告片”(默认false) }); //banner jQuery(".bn-slide").slide({ mainCell: ".bd ul", effect: "leftLoop", autoPlay: true }); //banner在线计价 $(".head-jj .menu-top ul li").hover(function(){ $(this).addClass("on").siblings().removeClass("on"); $(".head-jj .wraps .sec").eq($(this).index()).show().siblings().hide(); }); //计价 $('#pcb_qty_layer').numofboards(); //打样 var sw=($(window).width()-1200)/2+1200 $(".pcbScroll-left").width(sw); var num=Math.floor(sw/379)+1 jQuery(".pcbScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"leftLoop",autoPlay:false,vis:num,trigger:"click"}); jQuery(".pro-scroll").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"leftLoop",autoPlay:false,vis:4,trigger:"click"}); //生产流程 jQuery(".lc-slider .bd li").first().before(jQuery(".lc-slider .bd li").last()); jQuery(".lc-slider").slide({ titCell: ".hd ul", mainCell: ".bd ul", effect: "leftLoop", autoPlay: true, vis: 1, autoPage: true, trigger: "click", startFun:function(i){ $(".pretend_progress_active").animate({"width": i * 119+30 + "px"},150); } }); //特点部分 jQuery(".feature").slide({mainCell:".bd ul",autoPlay:true}); //公司简介 $(".company .top .rsec ul li").hover(function(){ $(this).addClass("on").siblings().removeClass("on"); $(".company .top .rsec .con p").eq($(this).index()).show().siblings().hide(); }); //pcb实时订单 jQuery(".ordScroll-top").slide({mainCell:".bd ul",autoPage:true,effect:"topLoop",autoPlay:true,vis:5}); //smt实时订单 jQuery(".smtScroll-top").slide({mainCell:".bd ul",autoPage:true,effect:"topLoop",autoPlay:true,vis:5}); //新闻资讯 jQuery(".news").slide({mainCell:".bd ul",autoPlay:true}); //悬浮按钮 $(".fix-btn").hover(function(){ $(".fix-lj").show(); $(this).animate({right:"-35px"}); }); //$(".fix-lj .gb").click(function(){ // $(".fix-lj").hide(); // $(".fix-btn").animate({right:"0"}); //});