[Javascript] ONMOUSEOUT being triggered too many times

Cutter Bl cutterbl at hotmail.com
Tue Aug 14 05:38:34 CDT 2001


I couldn't answer your question right off the top of my head. I'm still 
studying the script from http://www.dhtml.com for hiermenus (which do what 
you're asking). Perhaps it might be worth a look?

Cutter
http://www.falcon-knives.com

********************************************************
From: "Lau" <lau at goldenweb.com.au>
Reply-To: javascript at LaTech.edu
To: <javascript at LaTech.edu>
Subject: [Javascript] ONMOUSEOUT being triggered too many times
Date: Tue, 14 Aug 2001 19:05:48 +1000

Hi all,

How do I get around this problem?
I have a DIV with a TABLE in it that I'm using as a popup menu.
Its initially HIDDEN and becomes VISIBLE when the cursor moves over a link.
So when the mouse leaves the DIV I want the menu to become HIDDEN again.
Sounds easy but the problem is that I'm getting the ONMOUSEOUT event being 
triggered when the cursor
moves from one table row to the next, followed by another ONMOUSEOVER as it 
enters the next row.

Here's sample code demonstrating the problem:

<DIV ID=menu STYLE='position: absolute; left: 200px; top: 300px;visibility: 
visible'
onmouseover='alert("in");' onmouseout='alert("out");'>
<TABLE WIDTH=120 BORDER=1 CELLPADDING=0 CELLSPACING=0>
<TR><TD>option1</TD></TR>
<TR><TD>option2</TD></TR>
</TABLE>
</DIV>


regards
Lau




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the Javascript mailing list