Log in

View Full Version : Activate 1st level tab when sub tab is clicked



DarkArcher
03-13-2008, 08:53 AM
My website: Click (http://www14.brinkster.com/thejerm/testfinal1.html)

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.

Medyman
03-13-2008, 03:15 PM
Where will the subcontent link take you? To another HTML page? If so, you can just hardcode it.

DarkArcher
03-13-2008, 03:38 PM
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?

Medyman
03-13-2008, 03:50 PM
That depends, what are you using to switch your content?

DarkArcher
03-13-2008, 04:09 PM
I'm using javascript as shown in my website.

Bob90
03-13-2008, 04:43 PM
When you say 'activated' do you mean 'keep displaying'?

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