【文件属性】:
文件名称:jQuery多级无限级导航下拉菜单代码
文件大小:35KB
文件格式:ZIP
更新时间:2021-05-02 01:44:02
无限级导航
jQuery多级无限级导航下拉菜单代码,
jQuery多级无限级导航下拉菜单代码是一款可智能判断有没有下级菜单列表的网站下拉菜单特效。
js代码
[removed]
$(document).ready(function() {
$("ul.nav li").hover(function(){
$(this).addClass("on");
},
function(){
$(this).removeClass("on");
})
});
$(document).ready(function() {
$("ul.nav li").hover(function(){
$(this).parent("ul").siblings("h3").addClass("choice");
},
function(){
$(this).parent("ul").siblings("h3").removeClass("choice");
})
});
$(document).ready(function() {
if ($("ul.nav li").find("ul") .html()!="") {
$("ul.nav li").parent("ul").siblings("h3").append("");
}
});
[removed]
【文件预览】:
index.html
images
----arrows.png(957B)
js
----jquery-1.8.3.min.js(91KB)