Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function initMenu() {
- $('#menu div').hide();
- $('#menu div:first').show();
- $('#menu li a').click(
- function() {
- var checkElement = $(this).next();
- if((checkElement.is('div')) && (checkElement.is(':visible'))) {
- return false;
- }
- if((checkElement.is('div')) && (!checkElement.is(':visible'))) {
- $('#menu div:visible').slideUp('normal');
- checkElement.slideDown('normal');
- return false;
- }
- }
- );
- }
- $(document).ready(function() {initMenu();});
Add Comment
Please, Sign In to add comment