Results 1 to 5 of 5

Thread: Problem with Tab Menu II

  1. #1
    Join Date
    Jan 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with Tab Menu II

    1) Script Title:
    DD Tab Menu II
    URL:
    http://www.dynamicdrive.com/dynamici...ddtabmenu2.htm

    Hi,
    I am using your menu in http://chicisimo.com, and is working great. The only problem is that when I select one element of the first level and one of the second, the site loads the correct page, but doesn't remmember my selection. I mean, the menu goes again to highlight the default menu (the one in "initialtab")...

    Thanks
    Last edited by chicisimo; 01-02-2009 at 04:15 AM.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Try giving the menu you want to be highlighted on each page a class value of current, e.g.
    Code:
    <a class="current" onmouseover="expandcontent('navega_6', this)" href="http://chicisimo.com/">Trends</a>
    Oh, here's the DD script page (your link is broken): http://www.dynamicdrive.com/dynamicindex1/ddtabmenu2.htm

  3. #3
    Join Date
    Jan 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you! And sorry... because I don't understand how to do it... When I talk about pages in my post, I mean whatever I show. Most of the times I just show a link. For example when "popular brands" and "blanco" are selected, the site shows http://chicisimo.com/tag/blanco/
    I don't know is that is what you have understood, but if so, then I don't know where to place your code... Sorry! I am not and expert... Could you help me?
    Thanks

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    On the Blanco page, find this code:
    Code:
    <li><a href="http://chicisimo.com/" onMouseover="expandcontent('navega_7', this)" >Popular Brands</a></li>
    and replace it with this:
    Code:
    <li><a class="current" href="http://chicisimo.com/" onMouseover="expandcontent('navega_7', this)" >Popular Brands</a></li>
    Then find this:
    Code:
    <li><a href="http://chicisimo.com/tag/blanco" >Blanco</a></li>
    and replace it with this:
    Code:
    <li><a class="current" href="http://chicisimo.com/tag/blanco" >Blanco</a></li>
    Then do the same for each page, with the menu you want to be highlighted.

  5. #5
    Join Date
    Jan 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! But is not working. This is a blog, and I am doing the changes in header.php, that is where I have all the menu defined. Using your idea, the second menu can not be selected, and still goes to the initialtab selection...
    But thanks for all your help!!

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
  •