欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

制作jquery遮罩層效果導(dǎo)航菜單代碼分享

 更新時間:2013年12月25日 09:32:52   作者:  
我們將創(chuàng)建一個簡單的jquery菜單,只要我們懸停在導(dǎo)航欄的區(qū)域里,將展示給我們的畫面是:明亮的菜單在稍顯黑暗的背景圖中脫穎而出

jquery導(dǎo)航是一個網(wǎng)站必不可少的模塊,當(dāng)一個用戶在一個網(wǎng)站上瀏覽的時候,為了某個目的而查看網(wǎng)站導(dǎo)航欄的時候,突出導(dǎo)航欄的效果是重中之重。因此必須要使用一個效果:jquery遮罩層。利用明暗效果來突出當(dāng)前用戶的操作。

復(fù)制代碼 代碼如下:

$(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();
})
});

相關(guān)文章

最新評論