Changing the script value (alwaysVisible) dynamically

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sxarumu
Beginner
Beginner
Posts: 3
Joined: Wed Jul 04, 2007 1:28 pm

Changing the script value (alwaysVisible) dynamically

Post by sxarumu »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

See this post and my response on how to do this

viewtopic. ... 3289#43289

If you need more info, post back.

Ruth
sxarumu
Beginner
Beginner
Posts: 3
Joined: Wed Jul 04, 2007 1:28 pm

Post by sxarumu »

Ruth wrote:Hi,

See this post and my response on how to do this

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

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

Code: Select all

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
sxarumu
Beginner
Beginner
Posts: 3
Joined: Wed Jul 04, 2007 1:28 pm

Post by sxarumu »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply