Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
OnMouseOut funciton in UltrawebMenu?
posted

Hi,

I am using Ultrawebmenu and I have written the Mouseover function using the HoverItem. I need the MouseOut function also. Can any one please help?

Thanks in advance

Thanks & Regards

S Nagarajan

 

 

Parents
  • 4493
    Verified Answer
    posted

    Hi There,
    You use the very same event handler function for MouseOver and MouseOut events. The handler declaration is as follows:

    itemhv(menuID, menuItemID, hovered)
    {
      // your logic here ...
    }

    Where:
    menuID: The client side ID for the UltraWebMenu, which can be used to get reference to the UltraWebMenu client-side object:
              var oMenu = igmenu_getMenuById(menuID);

    menuItemID: The client side ID for the UltraWebMenu item, which is sending the event. This ID can be used to retrieve reference to the client-side menuItem object:
             var oItem  = igmenu_getItemById(menuItemID);

    hovered: This is the boolean parameter which shows where the item was Hovered or UnHovered (mouseout),

     

    Hope this helps!

Reply Children
No Data