For MacIE (and NS4) you still will have to use the cover layer. This only fixes the problem where blank layers not listening to events
--- Raymond Irving --- Daniel Tiru <[EMAIL PROTECTED]> wrote: > Hi folks! > > I havent seen this in the solution, but i will > explain anyway... > > When having a layer with html/text and that layer > have a onclick or > onmouseover or something else. > > In WinIE there is no problem. > In MacIE if clicking or dragging over the text of > the layer, the action > is not invoked. > > Does the solution cover this part? Will the > background image fix this > problem? In my brain, this wont solve this problem. > The only solution i > see, is to add a transparent gif in a layer over > this layer. As the text > always will be ontop of the bg image in the bottom > layer, and if the > text-properties(?) does not change i really dont see > the solution. > > Please enlighten me about how this will solve our > problem. > > Regards > Daniel > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Raymond > Irving > Sent: den 13 oktober 2003 19:24 > To: [EMAIL PROTECTED] > Subject: RE: [Dynapi-Dev] Layers and text - (The > solution) > > > > Ok, > > Can we say that if a layer does _hasMouseEvents but > does not have bgcolor or bgimage or html then we set > a > default transparent gif for the bgimage of the layer > for MacIE and WinIE? > > -- > Raymond Irving > > > --- Raymond Irving <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > Got this information from > > http://dhtmlnirvana.com/oldalchemy/dragfix.htm > > > > ...[snip]... > > > > Part of being a developer is to find workarounds > to > > existing problems. One long time bugbear has been > > the > > highlighting of content when using a drag scroller > > dhtml technique. Fortunately, such a workaround > > exists. The trick is to create a layer that > contains > > a > > blank gif. In the example below a blank gif is > used > > as > > a background. > > > > <DIV ID="shieldLayer" STYLE="position: absolute; > > left: > > 0px; top: 0px; width: 110%; height: 100%; > > background-image: url(images/blank.gif); z-index: > > 18; > > visibility: hidden;"></DIV> > > > > When a onMouseDown event is triggered when we are > > using a drag scroll technique we simply toggle the > > visibility of the layer to on. When the mouse > leaves > > the event capturing layer we then hide the > > shieldLayer. It is important that the shield > layers > > z-index be set to higher than everything else on > the > > page except for the event capturing layer. Do this > > and > > no more highlighting of images and content with > > dragging techniques in Internet Explorer. > > > > The other bug is that IE5.5 does not like empty > > layers > > in relation to drag scroll techniques. Therefore, > if > > you have a layer with no content, it will not > > capture > > events, but if you add something to it, it will > > capture the events. That something can be the same > > size of the layer like an invisible gif. I can get > > things to work just by placing an invisible gif as > > the > > background of the layer and all becomes good. > > > > <DIV ID="eventLayer" STYLE="position: absolute; > > left: > > 0px; top: 0px; width: 60px; height: 1020px; > > background-image: url(images/blank.gif); z-index: > > 19; > > visibility: hidden;"></DIV> > > > > ...[snip]... > > > > > > PS. Don't we just love Microsoft? :) > > > > -- > > Raymond Irving > > > > --- Jacob Levy <[EMAIL PROTECTED]> wrote: > > > Raymond > > > > > > This is easy to fix, then. All you have to do is > > to > > > make the default > > > background image a 1x1 GIF, for every layer. So > if > > > the user does not add > > > content or provide her own background image, the > > > layer will still be able > > > to get events. > > > > > > I don't have the code ready to show how to do > this > > > but it seems easy > > > enough for someone who knows their way around > the > > > dynapi core code.. > > > > > > --JYL > > > > > > > This is a bug in IE. In order for the top > layer > > to > > > > listen to onmousemove events you will have to > > add > > > > content to the layer or set a background image > > > > > > > > We might have to log this inside the > > > knowledge-base > > > > section of the troubleshooting docs. > > > > > > > > -- > > > > Raymond Irving > > > > > > > > --- Daniel Tiru <[EMAIL PROTECTED]> wrote: > > > >> Hehe, kul att det blev bra :) > > > >> > > > >> Well.. I must have support... And have used > > some > > > in > > > >> very sharp > > > >> enviorments like http://spinn.svt.se which > uses > > > the > > > >> html menu, it works > > > >> very nice... Just this one that got a > > problem... > > > But > > > >> its "fixed" now. > > > >> But i dont know if this fix can be used for > > > >> permanent solutions... > > > >> > > > >> Regards > > > >> Daniel > > > >> > > > >> -----Original Message----- > > > >> From: [EMAIL PROTECTED] > > > >> > [mailto:[EMAIL PROTECTED] > > > On > > > >> Behalf Of Michael > > > >> Bystrom > > > >> Sent: den 11 oktober 2003 02:00 > > > >> To: [EMAIL PROTECTED] > > > >> Subject: Re: [Dynapi-Dev] Layers and text > > > >> > > > >> > > > >> > > > >> Nä jag har köpt Ekeskog soffan (den Stora) > och > > > >> Barkaby fåtöljen alla i > > > >> Sand Färg mmmm mycket fint :) > === message truncated === __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/