View Full Version : Tab Content won't display...

05-12-2008, 03:41 PM
1) Script Title: Tab Content Script (v 2.2)

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

3) Describe problem:

For some reason, the content DIVs do not display at all, and the tabs don't change:

I don't see any change between FF and IE7.

I'm afraid it's because I split up the headers and the content, or maybe they aren't intended to be in other DIVs. In any case, any recommendations on making this work correctly?

05-12-2008, 09:19 PM
The initialization code for the script should always follow all your tab contents. So simply move it from your current HEAD section to the bottom of your page:

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

05-13-2008, 05:03 PM
Awesome, I knew I just botched something simple. :D