View Full Version : Tab Content Script Help, Please?

10-26-2006, 08:13 PM
1) Script Title: Tab Content Script

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

3) Describe problem:

Hello, the web site I am working on is here: http://drbenkim.com

For some reason, whenever a person first visits the home page, the three sections that are supposed to be in their own respective tabs all appear in the first selected tab window. Only after a viewer clicks on one of the other tabs does the first tab show only the content that it is supposed to show.

Can someone help me with this, please?

Thank you so much,


10-26-2006, 09:45 PM
From what I can tell this is the error. Each of the DIVs that surround your tab contents are lacking the class="tabcontent" declaration. For example:

<div id="tabcontent1" class="Natural Health Articles">

It should be:

<div id="tabcontent1" class="tabcontent">

Please read the instructions near the bottom of the script page again on this.

10-27-2006, 01:03 AM
Keeping the class as "tabcontent" did the trick - thank you so much for taking the time to help me with this!

Just one thing: I believe that you meant to write id=tcontent1, not id=tabcontent1.

Just in case someone else has a similar problem.

Thank you again!