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

Changing the script value (alwaysVisible) dynamically


Poster: sxarumu
Dated: Wednesday July 4 2007 - 13:32:22 BST

Hi,

I want to hide and show the menu based on a click of an image or on mouseover of an image. To do this, how do we change the value for the alwaysVisible field in the js file to 0.

Or Is there any other way to do the same.

Your help in this will be greatly appreciated.

Thanks
Siva


Poster: Ruth
Dated: Thursday July 5 2007 - 3:38:49 BST

Hi,

See this post and my response on how to do this

http://www.milonic.com/forum/viewtopic. ... 3289#43289

If you need more info, post back.

Ruth


Poster: sxarumu
Dated: Thursday July 5 2007 - 5:21:55 BST

Ruth wrote:
Hi,

See this post and my response on how to do this

http://www.milonic.com/forum/viewtopic. ... 3289#43289

If you need more info, post back.

Ruth


Thanks Ruth for your information.

I would like to see the menu that came up after clicking the button to remain in the screen until I click on the other button which will bring up another popup.

Thanks.


Poster: Ruth
Dated: Friday July 6 2007 - 7:58:24 BST

Hi,

Try adding keepalive=1; So in what I posted it would be

Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
style=menuStyle;
top=10;
aI("image=blueheaderleft.gif;showmenu=real main;openonclick=1;keepalive=1;");


That should do it. If not, you'll need to provide the page with the menu so I can work it out using what you have.

Ruth


Poster: sxarumu
Dated: Friday July 6 2007 - 8:08:13 BST

Thanks for the response!!!

If I do the keep alive, the menu retains....if I press the next button, a different menu should appear in the same place where the previous menu appeared.
so we have to hide the old one and display the new one.


Poster: Ruth
Dated: Friday July 6 2007 - 8:27:51 BST

Hi,

You'll have to give me a page so I can see what it is you want. Keepalive menus should close when you click for the next menu. So, I'm not sure I am understanding just what you want.

Ruth