教程集 www.jiaochengji.com
教程集 >  jQuery  >  jquery 教程  >  正文 jquery遮罩层效果实现导航菜单代码

jquery遮罩层效果实现导航菜单代码

发布时间:2015-12-11   编辑:jiaochengji.com
分享下一个简单的jquery菜单(jquery遮罩层效果),悬停在导航栏的区域中,将展示画面:明亮的菜单在稍显黑暗的背景图中脱颖而出。

jquery实现的导航菜单,使用jquery遮罩层效果。

当一个用户在一个网站上浏览时,为了某个目的而查看网站导航栏的时候,突出导航栏的效果是重中之重。
因此必须要使用一个效果: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');
});
//整理:www.jbxue.com
$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();
})
});

您可能感兴趣的文章:
jquery遮罩层效果实现导航菜单代码
jquery 遮罩层效果实现的导航菜单
制作jquery遮罩层效果导航菜单代码分享
jquery overlay遮罩层实现代码
jquery动画3.创建一个带遮罩效果的图片走廊
jQuery菜单插件 Smooth Navigational Menu
CSS3中遮罩使用实例教程
JS遮罩层效果(兼容ie firefox) jQuery遮罩层实例
JQuery 遮罩层(mask)实现代码
扩展easyui.datagrid,添加数据loading遮罩效果代码

[关闭]
~ ~