Selected menu Item - Style

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
lulu
Beginner
Beginner
Posts: 3
Joined: Mon Dec 13, 2004 9:13 pm

Selected menu Item - Style

Post by lulu »

Hi:

I'm implementing the DHTML menu; I want to disable the style of the menu option (and path) of the selected menu item, because more than one menu item can go to the same page, and all change the style.
I was reading the style properties and I didn't know which one to use.

Thanks,

Lulu
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I think this must be my don't understand anything day. I'm not sure what you are trying to do, could you be a little more descriptive....of course someone else may not being having the same kind of day I am and not need that :D

Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

I'm with you, Ruth...
John
lulu
Beginner
Beginner
Posts: 3
Joined: Mon Dec 13, 2004 9:13 pm

Post by lulu »

Hi:

I'm sorry; English is not my first language…

I'm developing in .NET using c# and I created a web user control that generates the JavaScript dynamically from a database according to the user permissions and I added that user control to all my pages so the menu is displayed all the time…

Some of the menu options have the same url. Lets say for example that 2 menu options call the same url:

aI("text=Sample 1;url=UnderMaintenance.aspx;");
aI("text=Sample 7;url=UnderMaintenance.aspx;");

Both menu options will have a style when one is selected.
What I want to know is the style properties I need to change in order avoid the menu options to change when the url is posted.

Thanks,

Lulu
lulu
Beginner
Beginner
Posts: 3
Joined: Mon Dec 13, 2004 9:13 pm

Post by lulu »

Hi:

Sorry... I found my error... I was defining twice the 'pagecolor' & 'pagebccolor' styles and that is why it wasn't showing my styles on the current page menu item.

Thanks,

Lulu


By the way, for the ones interested on dynamically create the javascript in .NET you will need to:

- Delete the script line that calls the menu_data.js
- In the code create an string that contains all of what is included in the menu_data.js including the menu options that can be queried from a table and on the page load when the page is not posted back add this:

Page.RegisterStartupScript("MenuDetail", yourstringvariable);
Post Reply