Results 1 to 2 of 2

Thread: What is a tab container?

  1. #1
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What is a tab container?

    1) Script Title: Tab Content Script v2.2

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

    3) Describe problem: Sorry to all the pros- I am a massive amateur.
    My question is: What is a tab container? I have googled the definition and got nothing. I just can't understand what to plug in. Here's the code:

    Code:
    <script type="text/javascript">
    
    var myflowers=new ddtabcontent("flowertabs") //enter ID of Tab Container
    myflowers.setpersist(true) //toogle persistence of the tabs' state
    myflowers.setselectedClassTarget("link") //"link" or "linkparent"
    myflowers.init()
    
    </script>
    "The first line just tells the script what the ID of your Tab Container itself is."

    ---
    I am sure this has an easy answer, but unfortunately I am remedial.
    Thanks for any and all help!
    Erica

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

    Default

    The "tab container" in this case just refers to the outermost container of the tab menu, such as:

    Code:
    <ul id="flowertabs" class="shadetabs">
    <li><a href="#" rel="tcontent1" class="selected">Tab 1</a></li>
    <li><a href="#" rel="tcontent2">Tab 2</a></li>
    <li><a href="#" rel="tcontent3">Tab 3</a></li>
    <li><a href="#" rel="tcontent4">Tab 4</a></li>
    <li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
    </ul>
    In this case the tab container is the UL element, with its ID being "flowertabs".
    DD Admin

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
  •