/*鼠标移过,左右按钮显示*/ // $(".www51buycom").hover(function(){ // $(this).find(".prev,.next").fadeto("show",0.1); // },function(){ // $(this).find(".prev,.next").hide(); // }) /*鼠标移过某个按钮 高亮显示*/ $(".prev,.next").hover(function () { $(this).fadeto("show", 1); }, function () { $(this).fadeto("show", 0.7); }) $(".www51buycom").slide({ titcell: ".num ul", maincell: ".buypic", effect: "fold", autoplay: true, delaytime: 700, autopage: true }); //鼠标经过显示标题,鼠标离开标题隐藏 $(function () { $("#pro li").bind({ mouseover: function () { $(this).children(".proname").show(); }, mouseout: function () { $(this).children(".proname").hide(); } }) }) $(function(){ // nav收缩展开 $('.list-nav li>a').on('click',function(){ var parent = $(this).parent().parent();//获取当前页签的父级的父级 var labeul =$(this).parent("li").find(">ul") if ($(this).parent().hasclass('open') == false) { //展开未展开 parent.find('ul').slideup(300); parent.find("li").removeclass("open") parent.find('li a').removeclass("active").find(".arrow").removeclass("open") $(this).parent("li").addclass("open").find(labeul).slidedown(300); $(this).addclass("active").find(".arrow").addclass("open") }else{ $(this).parent("li").removeclass("open").find(labeul).slideup(300); if($(this).parent().find("ul").length>0){ $(this).removeclass("active").find(".arrow").removeclass("open") }else{ $(this).addclass("active") } } }); });