您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

制作jquery遮罩层效果导航菜单代码分享_jquery

2025/10/5 6:21:24发布21次查看
jquery导航是一个网站必不可少的模块,当一个用户在一个网站上浏览的时候,为了某个目的而查看网站导航栏的时候,突出导航栏的效果是重中之重。因此必须要使用一个效果:jquery遮罩层。利用明暗效果来突出当前用户的操作。
复制代码 代码如下:
$(function() {
var $oe_menu= $('#oe_menu');
var $oe_menu_items= $oe_menu.children
('li');
var $oe_overlay= $('#oe_overlay');
                $oe_menu_items.bind('mouseenter',function(){
var $this = $(this);
$this.addclass('slided selected');
$this.children('div').css('z-
index','9999').stop(true,true).slidedown(200,function(){
$oe_menu_items.not
('.slided').children('div').hide();
$this.removeclass('slided');
});
}).bind('mouseleave',function(){
var $this = $(this);
$this.removeclass('selected').children
('div').css('z-index','1');
});
$oe_menu.bind('mouseenter',function(){
var $this = $(this);
$oe_overlay.stop(true,true).fadeto(200,
0.6);
$this.addclass('hovered');
}).bind('mouseleave',function(){
var $this = $(this);
$this.removeclass('hovered');
$oe_overlay.stop(true,true).fadeto(200,
0);
$oe_menu_items.children('div').hide();
})
});
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product