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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:17

Disabling an active link

Poster: Bozzy
Dated: Thursday January 19 2006 - 17:59:25 GMT


is there a pre defined function I can use to disable a link in the menu if you are already on that page or section?

Ie if you click home and go to the home page, the home button then becomes just text without a link attached?

is there one of the 'page' functions which can do this?


Poster: Ruth
Dated: Thursday January 19 2006 - 18:56:01 GMT


No there isn't a function like that, as far as I know, but there is a function called mm_changeItemProperty and a demo for it. I would think, if you want to take the time to put the function on the pages, and put the correct ones in each item, then you can have that kind of capability. ... /index.htm

That page is an explanation of the function, and the use of it on that page is from the menu. At the bottom of the page is a link to More demos. One of those is actually to disable an item. That one is run from the page, meaning the function is on the page and is called in the item so it will only apply to the item when the function is on the page. I haven't tested it in a whole sequence like you are mentioning. I'm assuming you want all the links to be disabled when on their respective pages, so you'd have to test doing it for each item.

There is also a property called type=disabled and if you know anything about making functions you might be able to make one that would say in effect, if url is equal to url of the aI string then type=disabled.


thanking thee

Poster: Bozzy
Dated: Thursday January 19 2006 - 19:52:29 GMT

excellent, thanks for the help -