How to make Dynamic Menus ??

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
m3jim
Beginner
Beginner
Posts: 2
Joined: Mon Sep 13, 2004 1:27 pm

How to make Dynamic Menus ??

Post by m3jim »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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 ... amenus.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
Post Reply