Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

z-index bug?

0 views
Skip to first unread message

cweiske

unread,
Sep 23, 2000, 3:00:00 AM9/23/00
to
I have a small js-dll, which creates buttons and windows in html which act
like "real" windows controls.

For the shadows + highlights, I have several <div>s with different
background-colors, the text is an <div> with an included <span>, at the top
is a <div>, which shall catch the onmousover().
Example:
<div id="button.2.button" >
<div id="button.2.3d1" style=".."></div>
<div id="button.2.3d2" style=".."></div>
<div id="button.2.flat1 style="..""></div>
<div id="button.2.flat2" style=".."></div>
<div id="button.2.fore" style=".."></div>
<div class="buttontext" id="button.2.text" style="position:absolute;
top:3px; left:3px; width=94px; height:18px;"><span
class="button"><center>Cancel</center></span></div>
<div class="buttonhook" id="button.2" style="position:absolute; top:0px;
left:0px; width:100px; height:24px;"></div>
</div>

My problem now is, that the buttonhook shall catch all the mouse events, in
IE5.0 it worked fine.
In IE5.5, the buttontext catches mouseover an mouseout, although the
buttonhook is above it.
How can I get acting it like it was in IE5??

The example is an HTML-Desktop with calculator and notepad:
http://www.realdreams.purespace.de/jsgames/windows/windows.htm

--
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
Christian Weiske, RealDreams
cwe...@cweiske.de
www.cweiske.de
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>

Alban Fonrouge

unread,
Sep 27, 2000, 3:00:00 AM9/27/00
to

>
> My problem now is, that the buttonhook shall catch all the mouse events,
in
> IE5.0 it worked fine.
> In IE5.5, the buttontext catches mouseover an mouseout, although the
> buttonhook is above it.
> How can I get acting it like it was in IE5??

Did you try event.cancelBubble = true after the buttontext has handle the
event ?

--
Alban

cweiske

unread,
Sep 30, 2000, 3:00:00 AM9/30/00
to
Yeah, tried.
But I don't see sense in that, cause the buttontext is above the
buttonhandler even if I said buttonhandler is on top.
And the buttontext doesn't handle this event
0 new messages