PDA

View Full Version : What is a tab container?



ericacmiller
09-29-2011, 03:38 PM
1) Script Title: Tab Content Script v2.2

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/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:


<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

ddadmin
09-29-2011, 09:47 PM
The "tab container" in this case just refers to the outermost container of the tab menu, such as:


<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".