From: Pascal B. <pa...@dy...> - 2000-11-04 17:05:50
|
I think the problem with the zIndex is that it's also being set by the popup menu itself (to make every menu appear above the "parent" menu. So I guess if your way works, use it :) Pascal Bestebroer pa...@dy... http://www.dynamic-core.net -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Jason LaFosse Verzonden: donderdag 2 november 2000 21:04 Aan: dyn...@li... Onderwerp: RE: [Dynapi-Help] core.gui.popup.js questions Thanks Pascal, the eventListener() idea worked just fine! Regarding question#2, I was trying to set the Zindex of the popUp menus. I have an image-mapped graphic which calls the popUp menus onMouseOver, however I want the popUp menus to be on a layer 'above' the graphic. When I tried setting the ZIndex at the popUp creation time, it had no effect. However if I put the setZIndex(n) in the onMouseOver of the hyperlink, it works. I was just curious if this was supposed to work this way. Thanks again! pax, Jason -----Original Message----- From: dyn...@li... [mailto:dyn...@li...]On Behalf Of Pascal Bestebroer Sent: Thursday, November 02, 2000 12:59 PM To: dyn...@li... Subject: RE: [Dynapi-Help] core.gui.popup.js questions a few answers then: 1. The easiest way (probably) is to use a eventlistener on the document, when the mouseover on the document happens, the popup menu doesn't have any focus anymore.. Note to other developers: I think the popup would need a enhancement to trigger onmouseout events on the popup it self. 2. Not sure about what you'r trying to do.. could you explain some more? 3. There's no other way to set the properties.. so it should be correct (and if it works, why change it) greets, Pascal Bestebroer pa...@dy... http://www.dynamic-core.net -----Oorspronkelijk bericht----- Van: dyn...@li... [mailto:dyn...@li...]Namens Jason LaFosse Verzonden: donderdag 2 november 2000 16:41 Aan: dyn...@li... Onderwerp: [Dynapi-Help] core.gui.popup.js questions I have a few implementation questions regarding the core.gui.popup.js 1. How can I set the popUp menus to disappear after rolling off of the entire menu ? I know I can put an 'onMouseOver' in the href, but this is not viable because as soon as you rolloff of the href the menu disappears. 2. I have tried using: myMenu.setZIndex(10) when creating the popUps, but this has no apparent effect. It only seems to work when I call it in an href (e.g. <a href="#" onMouseOver="myMenu.Pop(250,22); myMenu.setZIndex(10)">) Is this correct ? 3. Finally, I can successfully change the menu appearance (e.g. font color, bgSelected etc..) by using myMenu.style.scheme.property=value - as in the following: // create popup menus myMenu = new CorePopUp(100,100,100) myMenu.setSize(100,75) myMenu.add('Alta Vista','http://www.altavista.com') myMenu.add('Yahoo','http://www.yahoo.com') myMenu.style.scheme.face='#339999' myMenu.style.font.color='#ffffff' myMenu.style.scheme.fgSelected='#339999' myMenu.style.scheme.bgSelected='#efefef' this.document.addChild(myMenu) Is this the correct way to change the menu(s) appearance ? Thanks again for any help! pax, Jason _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help _______________________________________________ Dynapi-Help mailing list Dyn...@li... http://lists.sourceforge.net/mailman/listinfo/dynapi-help |