Change content of DIV in relation with Menu item clicked

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
shila
Advanced
Advanced
Posts: 11
Joined: Sun May 19, 2002 8:23 pm

Change content of DIV in relation with Menu item clicked

Post by shila »

Please help, I am sure someone out there already achieved what seems to be a struggle for me!

I am using mysql/php generated menu and it works great.
What I am trying to achieve is when clicked on menu_item1 it opens the content of the div_item1 and when clicked on menu_item2 it closes div_item1 and opens div_item2.

I hope I am making sense! My English isn't very good.
Thanks
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hello shila,

Perhaps this might help you do what you want

viewtopic.php?t=4148#18864

The first part is a different function, but the second is for a function to use Milonic's ClickFunction to show hide divs

Ruth
Roadkingrob
Beginner
Beginner
Posts: 5
Joined: Tue Nov 22, 2005 3:08 pm
Location: Apeldoorn
Contact:

Re: Change content of DIV in relation with Menu item clicked

Post by Roadkingrob »

Hello Shila.

I´m trying to get the menu to work with MySql but somehow it doesn´t. Can you tel me which files I need where and how to use them. I´ve got the databases and the connection but no script to read the data from the database

Rob


shila wrote:Please help, I am sure someone out there already achieved what seems to be a struggle for me!

I am using mysql/php generated menu and it works great.
What I am trying to achieve is when clicked on menu_item1 it opens the content of the div_item1 and when clicked on menu_item2 it closes div_item1 and opens div_item2.

I hope I am making sense! My English isn't very good.
Thanks
Post Reply