code problem rollover

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I didn't say it couldn't be solved, I do not know. The reason you sometimes get what you want is because your mouse moved slow enough to let all the functions do what they needed to do.
As I said I do not know javascript. I do have a sense of what the menu is doing.
1. On Main Menu mouseover it is performing two functions: changing the image to overimage and opening the submenu.
2. on 1st item submenu mouseover it is changing the Main menu overimage
3. on 2nd item mouseover it is performing two functions: the offfunction of the first item and then the onfunction of the new item
4. on moving off the submenu it is trying to perform the offfunction of whatever item you were on, and to close the submenu.
5. If you have gone rapidly to Main Menu 2 it is not only trying to complete the offfunction and to close the first submenu, it is also trying to open the new submenu and to switch the image to overimage for Main Menu 2.

I do not know if there is a way around this or some way to control the mouse speed of a visitor.

One thing you might try is to go back to 3 separate files as you had at first and to separate the menus by some space so there is space the person has to cross with the mouse to get to the next menu. Again this may depend on how the person uses the mouse. So, I do not know if this will work.

Ruth
Roadserver
Advanced
Advanced
Posts: 17
Joined: Thu Jul 15, 2004 6:01 pm

Post by Roadserver »

The menu works better now?
Why ...................... i don't now.

I have start to make a new menu (begin to the end).


But now there is a error after scrolling in my menu in de IE (not direct):

'_mi[...] is empty or no object
line 5

=================================
function setParentOverImage(imageName)
{
parentItem = getParentItemByItem(_itemRef);
_mi[parentItem][32] = imageName;
BDMenu(_mi[parentItem][0]);
}
=================================

What's the problem?
Post Reply