Results 1 to 6 of 6

Thread: Activate 1st level tab when sub tab is clicked

  1. #1
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Activate 1st level tab when sub tab is clicked

    My website: Click

    I would like to know how to enable a tab to be activated when its sub tab link is clicked. In the case of my website, I want "Pen Modifications" tab to be activated when I click the link (not coded yet) "subcontent".

    Thanks man.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Where will the subcontent link take you? To another HTML page? If so, you can just hardcode it.

  3. #3
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I'm using the sub content links to switch between page content on different div layers. I want the main tab "Pen Modifications" to be active when I click the sub tab belonging to it. Is this possible?

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    That depends, what are you using to switch your content?

  5. #5
    Join Date
    Feb 2008
    Posts
    13
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I'm using javascript as shown in my website.

  6. #6
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    When you say 'activated' do you mean 'keep displaying'?

    I ask because you are using onmouseover(), not onclick().

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
  •