Menu Item Property "disabled"

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mortenkr
Beginner
Beginner
Posts: 2
Joined: Wed Mar 15, 2006 11:51 am

Menu Item Property "disabled"

Post by mortenkr »

I can't see that the "disabled=true or disabled=1" property for a menu item works (at least not in way I would expect). The only effect this have for me is that border and background isn't displayed on mouseover, but the link is still active and can be clicked.

I'm testing it on Firefox 1.0.7
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

confirmed - (FF 1.5, IE)

I don´t think you can disable the menu-item this way, its just disabling the highlighting.

To modify item properties dynamically please see:

http://milonic.com/menueditapi.php

Michael
mortenkr
Beginner
Beginner
Posts: 2
Joined: Wed Mar 15, 2006 11:51 am

Post by mortenkr »

I found out that by removing the url, setting disabled=1 and setting oncolor and offcolor, gave me what I wanted.
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

that is correct,
and it could be done dynamically too using
http://milonic.com/menueditapi.php ....

if it is done manually, then of course it could be useful just to // comment it out . Why visualizing something, which does not work........

Michael
Post Reply