From: Pascal B. <pa...@dy...> - 2000-11-02 17:55:16
|
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 |