Hello again,
This works well ! But ! I have an other menu button
that opens an other sub-menu and a close button that closes
both sub-menus if one of them is open. Now, if I click on
the close button, I need to click twice on the menu button
to open the sub-menu… Hummm… Is that making any sens???
Here’s my final code (without the last modifications):
$(document).ready(function() {
$(‘#bouton_off’).hide();
$(‘#bouton_off2’).hide();
$(“#open_menu”).click(function(){
$(this).addClass(‘active’);
$(‘#open_menu2’).removeClass(‘active’);
$(‘#nav_sub’).animate({‘marginLeft’:‘250px’}, 400, ‘swing’);
$(‘#bouton_off’).show(‘slow’);
$(‘#nav_sub2’).animate({‘marginLeft’:‘20px’}, 400, ‘swing’);
$(‘#bouton_off2’).hide(‘slow’); });
$(“#open_menu2”).click(function(){
$(this).addClass(‘active’);
$(‘#open_menu’).removeClass(‘active’);
$(‘#nav_sub’).animate({‘marginLeft’:‘20px’}, 400, ‘swing’);
$(‘#bouton_off’).hide(‘slow’);
$(‘#nav_sub2’).animate({‘marginLeft’:‘250px’}, 400, ‘swing’);
$(‘#bouton_off2’).show(‘slow’); });
$(“#close_menu”).click(function(){
$(‘#open_menu,#open_menu2’).removeClass(‘active’);
$(‘#nav_sub’).animate({‘marginLeft’:‘20px’}, 400, ‘swing’);
$(‘#bouton_off’).hide(‘slow’); });
$(“#close_menu2”).click(function(){
$(‘#open_menu,#open_menu2’).removeClass(‘active’);
$(‘#nav_sub2’).animate({‘marginLeft’:‘20px’}, 400, ‘swing’);
$(‘#bouton_off2’).hide(‘slow’); });
});
Is there a way that when I click on the close button I don’t
need to click twice on the menu button to mak the sub-menu
appear. 
Thank you !
I could post the css file if you want…
jack3000