WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 XMenu menus do not hide, Lynda, October 23, 2002
     Re:XMenu menus do not hide, Erik Arvidsson, October 25, 2002
         Re:XMenu menus do not hide, Lynda, October 30, 2002
             Re:XMenu menus do not hide, Lynda, October 30, 2002

Subject: Re:XMenu menus do not hide From: Lynda Date: October 30, 2002

Thanks - I had tried this also but it made no difference.

It seems that your timer event gets cancelled on the hide if a new show menu is called too quickly - thereby leaving the menu as on orphan.  If the mouse moves up off the image then the menu hides fine.  It is only a problem when the mouse is moved quickly from one image to another when both have a menu attached.

From: Erik Arvidsson
Sent: October 26, 2002
Subject: Re:XMenu menus do not hide

This should work. Note that hideMenu starts a timer that hides the menu once triggered. If the timer for some reason is canceled the menu is not hidden.

The following (ugly) code works (you should set the webfxMenuUseHover variable to true before the writing of the menus).

<a href="#"

onfocus="if (!webfxMenuUseHover) webFXMenuHandler.showMenu(myMenu, this)"

onmouseover="if (webfxMenuUseHover) webFXMenuHandler.showMenu(myMenu, this)"

onblur="if (!webfxMenuUseHover) webFXMenuHandler.hideMenu(myMenu)"

onmouseout="if (webfxMenuUseHover) webFXMenuHandler.hideMenu(myMenu)"

onclick="return false"

>

<img src="http://webfx.eae.net/images/foldericon.gif"

onmouseout="this.src = &quot;http://webfx.eae.net/images/foldericon.gif&quot;"

onmouseover="this.src = &quot;http://webfx.eae.net/images/desktop.gif&quot;"

/>

</a>

You should be able to remove the anchor around the image if you only want the hover effect.

erik

From: Lynda
Sent: October 23, 2002
Subject: Re:XMenu menus do not hide

I have set up xmenu to show menus from a menu bar made up of a number of images side by side.  The menus work fine except that if you move the move from one image to the next, the menu is not hidden. If you move the mouse up from the image, the menu does hide.  I have this sort of code on each image to hide the menus:

 onMouseOut="webFXMenuHandler.hideMenu(aboutMenu);MM_swapImgRestore()"

and the event obviously does run as the rollovers work ok.

Any ideas? If I can't fix this I will have to find another menu tool, which would be a shame as this one is very nice in all other respects.

 

TIA

Lynda






Reply
Name: 
Email: 
Subject: 

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