Results 1 to 3 of 3

Thread: DD Tab Menu (5 styles) - hyperlink within DIV "tabcontainer"

  1. #1
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question DD Tab Menu (5 styles) - hyperlink within DIV "tabcontainer"

    1) Script Title: DD Tab Menu (5 styles)

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

    3) Describe problem:
    The script works great and I've customized it. The ONLY problem is I would like a hyperlink within the content aread (hence, class="tabcontent" section) to also work similar to the "auto select tab" in showing a tabbed content --section JUST LIKE the tab area.

    For example, when you put your mouse over the top tabbed section, it will reveal the 2nd level content (shown when mouse rolls over tab). I would like to do this WITHIN the content.

    So, if the script calls for:

    <div id="ddtabs3" class="solidblockmenu">
    <ul>
    <li><a href="javascript: void(0)" rel="sb2">Tab</a></li>
    <ul>
    </div>


    I would like to have a link at the end of the article that would do the same, something like:

    blah, blah and you can read more in the <a href="javascript: void(0)" rel="sb2">next section</a>

    But, it won't "auto select" when I do it this way. Any suggestions?

    Thank you kindly!
    - Sam

    P. S. A very similar script is used at http://www.microsoft.com/en/us/default.aspx ... looks great here. Maybe you can do something similar for us =)

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

    Default

    Sure, just use the following code:

    Code:
    <a href='javascript:ddtabmenu.showsubmenu("ddtabs1", document.getElementById("ddtabs1").getElementsByTagName("a")[2])'>Next section</a>
    Be sure to change the code in red to the ID of the Tab Menu this link corresponds to. Then, change the number in orange to the number of the tab within the tab menu that should be selected when the link is clicked on, where 0=1st tab, 1=2nd tab etc.
    Last edited by ddadmin; 07-16-2007 at 09:45 PM.

  3. #3
    Join Date
    Jul 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Thanks!

    Sweeeeeeeeet! Thank you very much for the quick reply. It worked perfectly!

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
  •