"MouseY is undefined" error

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Gary
Beginner
Beginner
Posts: 6
Joined: Fri Nov 14, 2003 3:20 am

"MouseY is undefined" error

Post by Gary »

Hi,

I'm trying to get a menu to display when I move the mouse over an HTML link. I'm using this code:

onmouseover=popup("mainmenu",1) onmouseout=popdown()

When I move the mouse over the link, I get a JavaScript error that says "'MouseY' is undefined." How do I "define" MouseY?

Thanks.

Gary
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

John
Gary
Beginner
Beginner
Posts: 6
Joined: Fri Nov 14, 2003 3:20 am

Post by Gary »

Hi John,

The menus in the sample work because their X and Y coordinates are specified. Unfortunately for me, the locations of the HTML links on my page are dynamic, and therefore unpredictable. That's why I was encouraged to read that the command

onmouseover("mainmenu",1)

would cause the menu to open near wherever the mouse happens to be. Unfortunately, it doesn't work when I try it. I just get the "MouseY is undefined" error.

Gary
Post Reply