Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:10
How to make Dynamic Menus ??
Poster: m3jim
Dated: Monday September 13 2004 - 13:34:23 BST
I was just wondering if anyone can explain how I can make the menu's dynamic (the menu's change depending on who logs in). The menu data could come from either a database, or be determined by code....
Also, I love what FedEx (http://www.fedex.com/us/) did on their menus. Some menu options show a little 'locked' icon until the user logs in. How can this be done ?
I'm using ASP.NET
Thanks - Jim
Rochester NY
Poster: Andy
Dated: Monday September 13 2004 - 18:09:46 BST
Hi,
There are several ways you can achieve dynamic menus.
If you want to use ASP and a database, there is some code at http://support.milonic.com/datamenu/asp_sql_datamenus.zip
Alternatively, you could do something like this inside your style definition:
if(loggedin)image="/padlock.gif";
Or you could rename the .js file as .asp and you could add your own code to declare an image based on your own conditions. There are just too many techniques for this to describe them all but it really depends on what you have.
-- Andy