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:18
"MouseY is undefined" error
Poster: Gary
Dated: Sunday July 25 2004 - 14:22:39 BST
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
Poster: Gary
Dated: Monday July 26 2004 - 4:14:42 BST
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