|
From: Jason L. <ja...@go...> - 2000-11-02 16:20:38
|
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
|