Menu's open on mouseover after openonclick is set

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
densy
Beginner
Beginner
Posts: 4
Joined: Mon Jun 09, 2008 9:38 am

Menu's open on mouseover after openonclick is set

Post by densy »

I need to modify a menu so that a submenu is only opened when a user clicks on the First line menu. Submenu’s should not open on mouseover. When an option in the first line menu is clicked on, it should remain in an active state (meaning: the overimage should remain highlighted so that the user knows which option he/she has chosen. I added the openonclick option to the first line menu to see if this would achieve my goals

Code: Select all

aI("image=fileadmin/huisstijlen/nav/basis.jpg;keepalive=1;overimage=fileadmin/huisstijlen/nav/basis_over.jpg;showmenu=basis;openonclick=1;");
aI("image=fileadmin/huisstijlen/nav/huisstijl.jpg;keepalive=1;overimage=fileadmin/huisstijlen/nav/huisstijl_over.jpg;showmenu=huisstijl;openonclick=1;");
aI("image=fileadmin/huisstijlen/nav/hetgezicht.jpg;keepalive=1;overimage=fileadmin/huisstijlen/nav/hetgezicht_over.jpg;showmenu=hetgezicht;openonclick=1;");
aI("image=fileadmin/huisstijlen/nav/destem.jpg;keepalive=1;overimage=fileadmin/huisstijlen/nav/destem_over.jpg;showmenu=destem;openonclick=1;");
aI("image=fileadmin/huisstijlen/nav/middelen.jpg;keepalive=1;overimage=fileadmin/huisstijlen/nav/middelen_over.jpg;showmenu=demiddelen;openonclick=1;");
aI("image=fileadmin/huisstijlen/nav/down.jpg;keepalive=1;overimage=fileadmin/huisstijlen/nav/down_over.jpg;showmenu=downloads;openonclick=1;");
The menu now opens when I click on it, but after that when I hover over the other First line menu options they immediately open. They should only open on click, but somehow they open immediately on hover when a user clicks one of the first line menu options. I have found no way to fix this behaviour.
The first line menu also does remain in an active state, after a while the image reverts back to the normal image.
Is what I am describing even possible, and if so how should this be done?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Menu's open on mouseover after openonclick is set

Post by Ruth »

Hi,

I will need a test page with the complete data file on it so I can work on it.

Ruth
densy
Beginner
Beginner
Posts: 4
Joined: Mon Jun 09, 2008 9:38 am

Re: Menu's open on mouseover after openonclick is set

Post by densy »

Hi,

I have made the following page so you can see the problem I'm talking about

Example
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Menu's open on mouseover after openonclick is set

Post by Ruth »

Hi,

Add closeonclick=1; to all the main menu items and then in the menu_data file up at the top area add retainClickValue=true; See if that doesn't make it act more in the way you want, if not try leaving the closeonclick=1; in the main menu items but remove the retainClickValue=true; from the data file

Ruth
densy
Beginner
Beginner
Posts: 4
Joined: Mon Jun 09, 2008 9:38 am

Re: Menu's open on mouseover after openonclick is set

Post by densy »

Hi,

I've tried the options you advised me to use, but i didn't notice any change in behavior. Is there anything else I could try?
Post Reply