Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:41

Hiding Menu Items


Poster: lbowyer __at__ hotmail.com
Dated: Wednesday April 24 2002 - 2:55:25 BST

Has anyone done any work to hide certain menu items based on a value in a variable. For example, I want to hide certain menu items from certain users, depending on values passed to a particular field.

I have been able to achieve this using a simple If statement in the menu_array file, but I was wondering if anyone has encountered this before and come up with a better alternative to multiple if statements.

Re: Hiding Menu Items


Poster: Andy
Dated: Thursday April 25 2002 - 5:01:35 BST

You would want to do it in the js file i think because if you dont users could view your source and see links they are not supposed to see.

Re: Hiding Menu Items


Poster: lbowyer __at__ hotmail.com
Dated: Tuesday April 30 2002 - 1:57:02 BST

I was doing it in the js file, but I was wondering if there might be a better way to do this than using multiple If statements.