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:14

One specify question about keepalive


Poster: queque51
Dated: Wednesday September 3 2003 - 12:12:02 BST

I need make a menu with a particular specifications:

Only need main menus, no submenus

When I click in one option, this must appear clicked (color change) until click in another option.

I try keepalive but this property not affect aparently

Any help, example?

Thanks. Excuse my poor english I'm spanish.


Poster: Maz
Dated: Wednesday September 3 2003 - 14:53:16 BST

onbgcolor="#316AC5";
onborder="1px solid #316AC5";
oncolor="#000000";

Any of these help?

maz

Exactly, not.


Poster: queque51
Dated: Wednesday September 3 2003 - 17:13:38 BST

You help me good, to realise the sensation of push menu, but when I go outside of the clicked menu, this restore itself to original values. I need mantain the menu clicked until I don't click on another menu.


Poster: Hergio
Dated: Wednesday September 3 2003 - 18:43:12 BST

Change the class or style of the menu item on click. This should be done by calling some sort of javascript function from the url (url=javascript:itemClicked()). If you need further explanation, let me know.


Poster: landolt
Dated: Thursday September 4 2003 - 9:39:11 BST

hey, thats exactly what i want. but if call the function it comes the error "function not found"

i have tried to declare the function:

- i the top where my menu is
- in the top of milonic_src.js file
- in the top of mmenudom.js file
- in a separate file

where do you declare your function "itemClicked" ??


Poster: Hergio
Dated: Thursday September 4 2003 - 13:54:30 BST

You should probably declare itemClicked() in the head of your document, before you include any other menu source files. It should find the function with no problems then. For troubleshooting, make itemClicked do nothing but put up an alert() box to let you know its being called correctly. THen start to put in CSS changes.
Regarding how to change the styles of the menu items on the fly, I havent worked much with that (yet) but I know it can be done. Once you get this far, we'll further this thread in that direction to see if we can do that.