fairnet/src/main/webapp/js/jquery.fixedMenu.js
2024-07-08 15:37:51 +09:00

21 lines
627 B
JavaScript

/* @version 1.1 fixedMenu
* @author Lucas Forchino
* @webSite: http://www.jqueryload.com
* jquery top fixed menu
*/
(function($){
$.fn.fixedMenu=function(){
return this.each(function(){
var menu= $(this);
menu.find('ul li > a').bind('click',function(){
if ($(this).parent().hasClass('active')){
$(this).parent().removeClass('active');
}
else{
$(this).parent().parent().find('.active').removeClass('active');
$(this).parent().addClass('active');
}
})
});
}
})(jQuery);