Closed
Bug 110072
Opened 24 years ago
Closed 23 years ago
onMouseOver/onMouseOut event problems with image maps
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
RESOLVED
FIXED
mozilla1.1alpha
People
(Reporter: markovitch, Assigned: bryner)
References
Details
(Keywords: topembed)
Attachments
(5 files, 2 obsolete files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5) Gecko/20011011
BuildID: 2001101117
There are three gray squares on the page with white legends: Computers, ART and *.*
When I point a mouse on any square there appears a menu (which is right) but as
soon as I try to point on any menu item, the menu disappears. In IE5 everything
is OK.
Reproducible: Always
Steps to Reproduce:
1. http://epaperpress.com/index.html
2. Point to any corner of, say, the Computers square - menu appears.
3. Try to point to any menu item.
Actual Results: Menu immediately disappears (though remains active, i.e. if you
click on appropriate place, you get result).
Comment 1•24 years ago
|
||
Confirming issue in the Nov 14th build (2001-11-14-05).
Status: UNCONFIRMED → NEW
Ever confirmed: true
![]() |
||
Comment 2•24 years ago
|
||
Events
Assignee: attinasi → joki
Component: Layout → DOM Events
QA Contact: petersen → vladimire
Comment 3•24 years ago
|
||
Load the site and look at the "Computers" square. This is a .gif:
http://epaperpress.com/images/index001_r3_c2.gif
When you mouseover it, the image is swapped dynamically to a more
detailed .gif:
http://epaperpress.com/images/index001_r3_c2_over.gif
When you mouseout, the image is swapped back to "Computers" again.
At least, that's the way it's supposed to work. However, in Mozilla,
the mouseout event is firing at the wrong time. Try moving your
mouse until it just touches the lower edge of the "Computers" square.
The mouseover event fires, and you see the detailed .gif. Now move
your mouse slowly until it just starts to touch the lowest element
in the menu. For some reason, the mouseout event fires! This changes
the image back to "Computers", hence the bug as reported above.
Here is the HTML element involved:
<a href="#" onMouseOver="MM_swapImage('index001_r3_c2','',
'images/index001_r3_c2_over.gif',1);"
onMouseOut="MM_swapImgRestore()" >
<img name="index001_r3_c2" src="images/index001_r3_c2.gif"
width="115" height="94" border="0" usemap="#index001_r3_c2Map">
</a>
where the <MAP> element is
<map name="index001_r3_c2Map">
<area shape="rect" coords="3,61,108,75" href="oper/index.html">
<area shape="rect" coords="3,47,108,61" href="vbhash/index.html">
<area shape="rect" coords="3,33,108,47" href="lexandyacc/index.html">
<area shape="rect" coords="3,19,108,33" href="sortsearch/index.html">
</map>
I have found that if I simply remove the usemap="#index001_r3_c2Map"
from the <IMG> element, the mouseout bug goes away. (Although the links
for the items shown in the detailed .gif now will not work). I will attach
an example below.
Comment 4•24 years ago
|
||
Comment 5•24 years ago
|
||
Load the attachment, and you will see that the mouseover and mouseout
events now function perfectly for the "Computers" square. Don't try to
CLICK on any of the items, though - you'll get redirected to
the parent URL again, where nothing works. This is because I have
removed the usemap attribute from the "Computers" <IMG> element.
SUMMARY
The bug has something to do with mouseout events getting mixed up
when there is a usemap attribute on an <IMG> inside an anchor.
Note: if you bring up the site in the Mozilla JS Debugger, set a
breakpoint in the function MM_swapImgRestore(). This is the onMouseOut
handler, as shown in the example above.
Updated•24 years ago
|
OS: Windows 2000 → All
Comment 6•24 years ago
|
||
*** Bug 111683 has been marked as a duplicate of this bug. ***
Comment 7•24 years ago
|
||
changing summary -> onMouseOver/onMouseOut event problems with image maps,
adding self to cc: list
This bug, and the duplicate bug 111683, only mention mouseOver/mouseOut.
the similar-sounding bug 111659 is describing problems with mouse clicks on
image maps.
Summary: JavaScripted menu disappears if I try to choose its item using mouse → onMouseOver/onMouseOut event problems with image maps
Updated•24 years ago
|
Target Milestone: --- → mozilla1.1
Comment 8•24 years ago
|
||
OK, I'm now sure that bug 111659 is NOT related to this bug
While I'm here, this bug is still present, win98SE, 2002010403
Comment 9•23 years ago
|
||
Updating 'problem site' - http://www.inspiredorder.com/ (Rollovers at the top
use image maps).
Also still broken in 1.0 Release (Linux x86). Are we still targeting a fix in
mozilla 1.1 alpha?
Comment 10•23 years ago
|
||
*** Bug 157676 has been marked as a duplicate of this bug. ***
Comment 11•23 years ago
|
||
Related to this is the following, written in PHP for brevity.
1. Execute the script and view the output in Gecko (NS6/Phoenix 0.4)
2. Move the mouse over the squares fairly quickly.
The first time, the onmouseout event does not happen-- the squares stay blue.
After this they work OK.
This works OK in IE 5.5
<html>
<head><title></title>
<script type="text/javascript" language="javascript">
function helpfor(i, j, bg, fg)
{
document.getElementById(i+"_"+j).style.colour=fg;
document.getElementById(i+"_"+j).style.background=bg;
}
</script>
</head>
<body>
<table>
<?php for($i=0; $i<10; $i++) { ?>
<tr>
<?php for($j=0; $j<10; $j++) { ?>
<td id="<?php print($i."_".$j); ?>" onmouseover="javascript:helpfor(<?php
print($i.",".$j);?>, 'blue', 'white' );" onmouseout="javascript:helpfor(<?php
print($i.",".$j);?>, 'white', 'black' );"><?php print($i.$j);?></td>
<?php } ?>
</tr>
<?php } ?>
</table>
</body>
</html>
Comment 12•23 years ago
|
||
Can anyone confirm that this bug is the cause of the following image map not
working.
http://www.i7.aol.com.au/
On left hand side (Choose A Site)
This image map consists of a table contating <img> entries using
onmouseover="showMenu(event)"
The mouse over does not display at all. It does with IE, and works partially
with Netscape Communicator 4.8.
I suspect that it is caused by this bug - could you please confirm. If not, I
will log a new bug.
When is this issue going to be addressed - I come across many sites that exhibit
this problem and are non-functional - only work with IE.
I also believe severity and priority should be bumped up as this issue causes
problems on many sites, some sites being inoperable as they only use image map
with mouse over as the interface.
My browser : Mozilla 1.2 build 2002111715
Comment 13•23 years ago
|
||
Reassigning to new default owner of this component; cc'ing jst, jkeiser.
I hope we can expedite this one, it's been waiting a long time for a fix -
Assignee: joki → saari
Comment 15•23 years ago
|
||
#11 is a dupe of 130620
Comment 16•23 years ago
|
||
The testcase site has been changed, and is no longer showing the wrong
behaviour... does anyone know of another site that shows the problem?
Comment 17•23 years ago
|
||
Try http://www.microsoft.com/
The menus across the top do not drop down with Mozilla. Looking at the page code
it is img mouseover event, so I suspect this is the same problem.
Comment 18•23 years ago
|
||
Excellent catch, but it's a mouseover on a text element, not an image ... that's
not this bug. That is bug 103055. It may be that that is the cause of the
image bug as well.
Depends on: 103055
Comment 19•23 years ago
|
||
Yeah, Microsoft site is definately not this bug. It appears that the source code
on Netscape is different then on IE6, and is not even suppose to show popups...
Comment 20•23 years ago
|
||
I cannot find a testcase that fails here, so I cannot test the fix. Testcase
needed.
Comment 21•23 years ago
|
||
From what the other testcase looked like, it was expecting no mouseout on img,
but this testcase shows that on both IE and Moz, mouseout happens when you go
from the parent into the child.
Comment 22•23 years ago
|
||
Mouse over the images in the middle many times, and watch them swap. The bug is
that they dont always swap. When there is no usemap they swap all the time, and
very fast.
Comment 23•23 years ago
|
||
This test quickly swaps the images, and does it consistently
Attachment #58232 -
Attachment is obsolete: true
Attachment #109496 -
Attachment is obsolete: true
Comment 24•23 years ago
|
||
The bug still exists. Please coment if you see any sites that use this
behaviour. I will raise the priority.
Priority: -- → P3
Comment 25•23 years ago
|
||
*** Bug 186847 has been marked as a duplicate of this bug. ***
Comment 26•23 years ago
|
||
Comment 27•23 years ago
|
||
Comment 28•23 years ago
|
||
mouseover image map does not show link on status line:
Recreated this defect on win2k mozilla 2003010608.
testcase is an html page with a mapped image(large rectangle, with cirlce,
and square within it). each shape should return a different link as you
move the the mouse it. the link should display on the status line at
the bottom of the browser.
testcase files BrwTestHTMLImageMap.html, BrwTestHTMLImage.gif
Comment 29•23 years ago
|
||
*** Bug 189529 has been marked as a duplicate of this bug. ***
Comment 30•23 years ago
|
||
http://bugzilla.mozilla.org/show_bug.cgi?id=189529 should be a dupe of this, as
noted above.
that bug might be of interest. in 1.2.1 I do not have the problem described in
the bug, but in recent nightlies I do. so at some point "my" specific problem
was fixed.
This breaks Netscape.com's left navigation panel feedback for channels.
Keywords: nsbeta1
Comment 32•23 years ago
|
||
*** Bug 190027 has been marked as a duplicate of this bug. ***
Comment 33•23 years ago
|
||
I'd still desire some clafification on the issue I noted above.
"My" specific bug was fixed at one point, around 1.2.1, but this bug doesn't
seem to have ever been fixed, and has been opened since before 1.2.1.
Comment 34•23 years ago
|
||
Probably the same (or similar) problem:
http://www.ralphm.net/map?mapname=poland
(When you hover a bulb icon on the map a <div> containing some
information about the user should appear - but it does not in 1.3b nightlies).
This website used to work with Mozilla 1.2.1, 1.3alpha and Netscape 7.0.
Now it does not work with Mozilla and Phoenix nightlies...
Comment 35•23 years ago
|
||
Just happen to rediscover this bug after modifying my company's website. The
strange thing is the mouseover and mouseout events does work in recent fall
and/or recent summer. But today, I discovered that it doesn't work.
The two testcases on the date of 12-17-2002, I'm not certain if it is working
right because the code is very lengthly and the images is resized due to the
width and height attribute. Fortunately, I had been updating my company website
so I copied some of the code and modify it for a new testcase to this bug
report. The code is very short and simple which would help to move this project
along. As for the testcase on the date of 01-07-2003, it's not working.
This bug is not an issue for Netscape 7.01, by the way, Netscape 7.01 is based
on Mozilla 1.0.2. As for Mozilla Build #2003-01-28, this bug still exist....
Comment 36•23 years ago
|
||
Cleaner coding for this testcase.... Just do the mouseover over any of the 3
red dinosaur.... This is the one that don't work with the latest Moz build...
Comment 37•23 years ago
|
||
Susie has sent email asking that this be considered soon and taken.
Comment 38•23 years ago
|
||
It is fixed with bug 185889. (That patch is not checked in yet.)
Comment 39•23 years ago
|
||
*** Bug 193167 has been marked as a duplicate of this bug. ***
Comment 40•23 years ago
|
||
Fixed with bug 185889/103055.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 41•23 years ago
|
||
*** Bug 193844 has been marked as a duplicate of this bug. ***
Comment 42•22 years ago
|
||
*** Bug 194420 has been marked as a duplicate of this bug. ***
Comment 43•22 years ago
|
||
*** Bug 193104 has been marked as a duplicate of this bug. ***
Comment 44•22 years ago
|
||
*** Bug 196155 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•