MouseOut problems

liunx

Guest
I am making a menu for this website I am working on. It drops down, and I want to set it so that once it moves to a certain area, defined by a number of pixels, that the menu will disappear. I have this code:<br />
<br />
document.onmousemove=mtrack4;<br />
function mtrack4(e){<br />
stylesheet = " ";<br />
if((event.x < 580) || (event.x > 760) || (event.x < 670 && event.y > 50))<br />
{<br />
top.window.frames[2].showHome();<br />
}<br />
}<br />
<br />
in each of my menu functions, that display the info. The problem is, using the document.onmousemove call keeps it inside the function because it is constantly calling it, so then the other menus will not work at all, since the mouse detection is halted. Any ideas how to just check for x and y position without getting all bundled up??<!--content-->Oh my God... Navigator 4 Code! Haven't seen it in years.<br />
<br />
You need to routeevent or releaseevent.<br />
<!-- m --><a class="postlink" href="http://developer.netscape.com/docs/manuals/communicator/jsref/evnt.htm#1093677">http://developer.netscape.com/docs/manu ... tm#1093677</a><!-- m --><br />
<br />
And you know that this won't work in Internet Explorer, don't you?<!--content-->See, I have been working on getting this code to work, and it ends up working for ONLY IE. I dont get it, because I though the event handlers were for netscape.<!--content-->
 
Back
Top