Log in

View Full Version : Resolved Script/css to open content on same page-and highlight active content.



avdistribution
01-06-2009, 05:55 PM
The effect I'm looking for is to have a simple tabbed menu on a page that allows the user to open a div with different content, with that content and tab highlighted to show where the user is. An example of the effect is in the middle of this page, where the additional information/accessories etc resides:
http://butterflyphoto.com/prodinfo.phtml?id=1928

I have a script that does the div opening thing, but I can't figure out how to get the background of the "current" tab and content to change color. You can see it on a test page here;

http://avdistribution.shop.wosbee.com/PublishedService?pageID=18&freePage=313

Snookerman
01-06-2009, 06:35 PM
Take a look at this one, it might be what you are looking for:
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm (http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm)

Good luck!

avdistribution
01-07-2009, 03:49 PM
Snookerman,
Thanks-that solution works well. I only looked in the menu's section, so missed that one.
Cheers!

Snookerman
01-07-2009, 03:58 PM
You're welcome, glad to help! You can go to your first post in this thread, click http://www.dynamicdrive.com/forums/images/buttons/edit.gif then click Go Advanced and add the Resolved prefix to the thread title. This will let other users know the problem has been solved.

Good luck with your site!