WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Combination Coolbuttons + Contextmenu, Mark van der Sanden, September 21, 2002
     Re:Combination Coolbuttons + Contextmenu, Erik Arvidsson, September 23, 2002
         Fixed, Erik Arvidsson, September 23, 2002
             Re:Fixed, Mark van der Sanden, September 30, 2002

Subject: Combination Coolbuttons + Contextmenu From: Mark van der Sanden Date: September 21, 2002

I don't know whether this is a bug or not. If Coolbuttons2 and Contextmenu are both used on the same page, I couldn't get it to work. It seems that when writing to the document.body.innerHTML, the Coolbuttons get stuck.

If I write the Contextmenu-Iframe directly to the page (in HTML), both work. So I added a parameter to ContextMenu.initializeContextMenu: hideIframe. If that parameter is set to true, no Iframe is written to the document.body.innerHTML and both scripts work.

Of course there must be a better solution, but I couldn't find one.

ContextMenu.intializeContextMenu=function(hideIframe) {
  if (hideIframe != true) {
    document.body.innerHTML+='<iframe scrolling="no" class="WebFX-ContextMenu" marginwidth="0" marginheight="0" frameborder="0" style="position:absolute;display:none;z-index:50000000;" id="WebFX_PopUp"></iframe>'


Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.

View All Messages
Back to WebFX