jQuery悬浮顶部下拉菜单

来源:https://www.sucaihuo.com/js/1469.html 2017-03-17 21:33浏览(1998) 收藏

下拉菜单代码,是一个很好的插件,直接复制粘贴到代码中,引入css,就好
jQuery悬浮顶部下拉菜单
分类:导航菜单 > 下拉导航 难易:初级
查看演示 下载资源 下载积分: 10 积分

直接复制粘贴到你的代码中,代码很好看懂,很好用,是一个很好的插件。

$posbox.mouseover(function() {
    var i = $(this).index();
    $(this).addClass("anvh").siblings().removeClass("anvh");
    var selec = $(this).attr("selec");
    if ($seledbox.is(":hidden")) {
        $seledbox.show().css("left", 64 * i + 1).html("<div>" + anvjson[selec] + "</div>")
    } else {
        $seledbox.stop().animate({left: 64 * i + 1}, 200, function() {
            $("#seledbox").html("<div>" + anvjson[selec] + "</div>")
        })
    }
});
$anvlfteb.mouseleave(function() {
    $seledbox.hide();
    $posbox.removeClass("anvh");
})
评论0
头像

系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791

1 2