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
"MouseY is undefined" error
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
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