Open a menu by Url? (SOLVED)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Brannmark
Super Advanced
Super Advanced
Posts: 31
Joined: Mon Aug 25, 2003 4:33 pm

Open a menu by Url? (SOLVED)

Post by Brannmark »

I need to open a treemenu by url. I have tried the openmenubyurl script but its not what I want. That scripts tries to open the menu all the time. Ie it works perfect when page loaded the first time. Then the user clicks and opens a another tree menu section. Then the user decides to move away from the menu before clicking a "item". The the openmenubyurl closes the open tree and tries to open the "correct" tree.

I dont want this. I want to expand the correct tree on page load. But after that, nothing should happend.

So how do I go about writing such a script for the menu? Need to use URL for opening the correct tree...


Found how to tweak this.

In openmenusbyurl.js this row can turn it on of:

Code: Select all

resetAutoOpen=false      // parameter This bit allows the menu to re-open if sibling menus have been closed, displaying the menu again if required.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Thanks for the solution post. We really appreciate providing the help for anyone else who might have the same question.

:)

Ruth
Post Reply