Name: clintxp Date: March 26, 2007 at 06:39:33 Pacific Subject: onMouseOut event not working good OS: Windows XP Pro CPU/Ram: Intel P4 2.8E, 512MB PC40
Comment:
I am doing an onMouseOut event on a table, but the event is also taking place when I move from a cell onto another (through the same table) cellpadding and cellspacing are set to 0. I am working on IE7
Here's the code of the event: <table cellpadding=0 cellspacing=0 id="m1s" onMouseOut="m1s.style.visibility='hidden'" style="cursor:hand; padding:0px; position:absolute; left:0px; top:0px; height:75px; width=100px; z-index:2; visibility:hidden"><tr><td...
I don't have IE7 on the machine I am working on at the moment. But, it works in IE6 and FF and Opera. Do you have the same problem in any other browsers?
OK, I did my testing by changing the color onmouseout and had no anomolies. But, after some different scenarios I am getting the similar results. It appears that the onmouseout event is a momentary even when mouseing over a hyperlink.
However, in your situation I think there may be a workaround - assuming your implementation is similar to your example above. Since your div element is in a fixed position you could also give the div a fixed size. Then use the onmouseout trigger to call a function. That function can check the mouse pointer position and if it is outside the div then change the visibility of the div.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE