View Full Version : Swapping Two Layers with one click

09-27-2005, 02:19 AM
So here is basically what i am trying to do. When clicking on one of the top two tabs (see image below) i want the button set to change as well as the tab over image to stay clicked.

When you click on one of the buttons, the top tab should stay on, based on the buttons you are on, and the middle image will change.


To view my broken code attempt in action (isolated to just this box) you can see it here:

Link to broken table (http://www.falloutsf.com/outbox/dhtml_help/help.html)

zip file version of page if anyone thinks that would help (http://www.falloutsf.com/outbox/dhtml_help/dhtml_help.zip)

Before I added the top tabs, i had page working perfectly here (http://www.tarceva.com/tarceva/professional/index.jsp)
(the survival benefit data table)

Thanks again

09-27-2005, 05:30 AM
Few things that you want to start with:
a) Tabs is a LIST of BLOCKS
b) Transitional DTD puts browser in quirks mode that is not worth debugging. It was meant for legacy pages. All new ones should be coded in Strict mode.

Once you got the proper mark-up and DTD you are welcome to check this out: http://demos.klproductions.com/betas/kltabs/kltabsbeta.html - at least for inspiration. :thumbsup: