Results 1 to 2 of 2

Thread: Styling Tab Content Script

  1. #1
    Join Date
    Jan 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Styling Tab Content Script

    Tab Content Script (v 2.0)

    http://www.dynamicdrive.com/dynamici...tabcontent.htm

    Describe problem: I am trying to separately style the tab and content sop the tab stays highlighted for the current content but so the content doesn't have to have a colored background.
    http://dev.keyfax.com/xfactor/partners.php#
    I can't seem to seperate the two styles. Any ideas?

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

    Default

    You're actually using the older version of this script (Tab Content script I). The current version is v 2.0. For the older version (one you're using now), you can limit the theme color change for the selected item so only the selected tab itself is affected in terms of background color change, and not the selected tab's content DIV. Inside the script, change the line:

    Code:
    aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor
    To:

    Code:
    aobject.style.backgroundColor=themecolor
    That's about the extent in which you can style/unstyle the selected tab's content DIV with this script, however.

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
  •