Results 1 to 6 of 6

Thread: dropdowntabfiles - default hover color problem

  1. #1
    Join Date
    Oct 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default dropdowntabfiles - default hover color problem

    1) Script Title: ddtabfiles

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...roptabmenu.htm

    3) Describe problem:
    The default for the highlighted nav menu tab is not working. I tried Customization # 3 and both tabs were highlighted. How do I not have any of the tabs show a hover color when the page is opened? Right now the "Buildings" tab is showing this. Driving me nuts trying to work around it. help? http://bmi.logion.net
    thanks,
    David

    from ddtabfiles page:

    3) Script to call following the HTML for both of the above to initialize a Tab Menu instance:

    Finally, with both parts of a Drop Down Tabs defined, you should call the following script to initialize it on the page:

    <script type="text/javascript">
    //SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
    tabdropdown.init("bluemenu", 0)
    </script>

    The first parameter (highlighted in red) should be the ID of the Menu Tab to initialize once the page has fully loaded. The second parameter is optional, and lets you set which tab should be selected by default- enter either an integer (0=1st tab, 1=2nd tab etc), or "auto" to have the script try to automatically select the tab that matches the current page's URL *. And that's it!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Not sure I understand actually. Right now the "Buildings" tab appear selected by default when the page loads. No other tabs are selected. You say:

    The default for the highlighted nav menu tab is not working. I tried Customization # 3 and both tabs were highlighted.
    What do you mean by both tabs?
    DD Admin

  3. #3
    Join Date
    Oct 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Buildings tab

    sorry, forget my reference to two tabs when I tried to fix it.
    How do I eliminate the Building tab from being highlighted on all the pages?

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Change:
    Code:
    <script type="text/javascript"> 
    //SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
    tabdropdown.init("colortab", 3)
    </script>
    To:
    Code:
    <script type="text/javascript"> 
    //SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
    tabdropdown.init("colortab", auto)
    </script>
    Jeremy | jfein.net

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

    Smile

    Thanks nile !!!!!!

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Glad to help you! Your welcome!

    It seems your topic is solved... Please set the status to resolved.. To do this:
    Go to your first post ->
    Edit your first post ->
    Click "Go Advanced" ->
    Then in the drop down next to the title, select "RESOLVED"
    Jeremy | jfein.net

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
  •