RE: Hiding a custom context menu
"Seb Frost" <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
I don't understand how that's relevant - may be I should have given more information. When a user right clicks on this site the normal context menu has been replaced by one I've created myself. Mine is an absolutely positioned styled nested <ul>. I'm not using popups at all. -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Lon Boonen Sent: 09 November 2005 12:50 To: [email protected] Subject: RE: [wdf-dom] Hiding a custom context menu Hi, from MSDN documentation: var oPopup = window.createPopup(); function ButtonClick() { var oPopBody = oPopup.document.body; oPopBody.style.backgroundColor = "lightyellow"; oPopBody.style.border = "solid black 1px"; oPopBody.innerHTML = "Click outside <B>popup</B> to close."; oPopup.show(100, 100, 180, 25, document.body); } ButtonClick(); greetings Lon ------------------------------------------------- Q42: http://www.q42.nl Xopus: http://xopus.com Lime: http://www.q42.nl/products/lime > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Seb Frost > Sent: woensdag 9 november 2005 13:43 > To: [email protected] > Subject: [wdf-dom] Hiding a custom context menu > > > I've created a pretty sweet right-click context menu to give > my intranet > application more usability and functionality. > > Everything works sweet and I've styled it to look exactly > like a normal > windows menu. > > Only behaviour problems which I can't duplicate as yet: > > 1) if the user clicks on the address bar or a toolbar at the > top of the > browser the context menu doesn't hide as it normally would > > 2) if the window loses focus the context menu doesn't disappeat as it > normally would > > > I've tried the following for the 2nd one: > window.onblur = function () > {document.getElementById('context').style.display='none';}; > > > But it doesn't hide the menu until focus is given back to the window. > > > How can I achieve both of these aims in IE6? > > cheers > > > > ------------------------ Yahoo! Groups Sponsor > --------------------~--> > Get fast access to your favorite Yahoo! Groups. Make Yahoo! > your home page > http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM > -------------------------------------------------------------- > ------~-> > > Unsubscribe > [email protected] > > List info > http://www.quirksmode.org/dom/list.html > Yahoo! Groups Links > > > > > > > Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM --------------------------------------------------------------------~-> Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wdf-dom/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/