SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2008
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Mega Menu - one tab open on page load - jQuery?

    I am using this mega menu: http://themes.pixelworkshop.fr/?theme=CSS3MegaMenu

    What I would like is for one tab (the second tab) to be open when the page loads without someone having to hover over it first - I would still need it to change to the other tab contents if a different one is hovered though. I tried adding:

    Code:
        $(document).ready(function() {
            $('ul.menu li.fullwidth:first div.dropdown_fullwidth').css('left','0px');
        });
    which kept the content open but didnt have the tabs hover state nor did it change when i hover on another - can someone help a jquery newbie out?
    Last edited by t3stin; Jul 25, 2012 at 03:40. Reason: typo


Tags for this Thread

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
  •