Results 1 to 3 of 3

Thread: Tab Content won't display...

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

    Default Tab Content won't display...

    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:
    http://jonspace.com/asc/

    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?

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

    Default

    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:

    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>

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    FlashbackJon (05-13-2008)

  4. #3
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Awesome, I knew I just botched something simple.

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
  •