SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Simple jQuery, slide up rather than slide down?

    I have this simple slide down when you hover over menu, using the following JS and can been seen here..

    Code JavaScript:
    $(function(){
        $('.sub-menu').hide();
        $('.menu-item').hover(
            function () {
                var target = $(this).children('ul');
                $.browser.msie ? target.show() : target.slideDown(150);
            },
            function () {
                var target = $(this).children('ul')
                $.browser.msie ? target.hide() : target.slideUp(150);
            }
        );
    });

    I'm after it working exactly the same apart from when you hover over the button the menu appears and slides up rather than down, slides above the buttons.

    Any chance someone could help me out?

    Been asking around and nobody knows

    Many thanks

  2. #2
    SitePoint Addict
    Join Date
    Jul 2006
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *Update*

    Think i have managed it here it is running

    However, now i need to figure out how to apply it to multiple buttons across a navigation like the one above...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •