PRB: Layered DIV Does Not Capture Mouse Events (262559)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 5.5
This article was previously published under Q262559 SYMPTOMS
In Internet Explorer 5, when you mouse over a DIV element that contains text and has another DIV element layered over it, you do not get mouse events on the lower DIV, and the cursor does not change to a text-selection cursor. In Internet Explorer 5.5, the mouse events fire for the lower DIV, and the cursor does change.
This occurs only when the uppermost DIV is transparent, that is, it has no background specified.
CAUSE
Internet Explorer 5.5 changes this behavior to follow a new model of hit testing for DHTML elements. Many developers did not want Internet Explorer 5 to "absorb" mouse hits for elements that were covered by transparent elements.
RESOLUTION
In certain cases, you may want to have a transparent DIV element receive events. You can do this in two different ways under Internet Explorer 5.5:
In both cases, the transparent DIV receives events as it did in earlier versions of Internet Explorer.
REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbDHTML kbprb KB262559 |
---|
|