Results 1 to 3 of 3

Thread: Tab Content Script Help, Please?

  1. #1
    Join Date
    Aug 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tab Content Script Help, Please?

    1) Script Title: Tab Content Script

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

    Sarah

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

    Default

    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:

    Code:
    <div id="tabcontent1" class="Natural Health Articles">
    It should be:

    Code:
    <div id="tabcontent1" class="tabcontent">
    Please read the instructions near the bottom of the script page again on this.

  3. #3
    Join Date
    Aug 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank you

    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!

    Sarah

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
  •