[jQuery] Better accordeon for my website.
Hello.
I'd like to ask you how I could have an accordeon menu with standart
effects (slideUp & slideDown) with the following option :
- If I click on a submenu already visible, I don't want it to slide
up and down (beautiluf but not useful)
For the rest, I use :
$(document).ready(function(){
$("#blogextra ul:not(:first)").hide();
$("#blogextra h2").click(function(){
$("#blogextra ul:visible").slideUp("slow");
$(this).next().slideDown("slow");
return false;
});
$("#blogextra h2").mouseover(function () {
$(this).css("cursor","pointer");
});
});
Example : http://www.sakeco.net/blog (on the right side)
Greetings from France,
Popech