Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] ShowDelay Does not Seem to Work

Expand Messages
  • Todd Kloots
    The showdelay configuration property only applies to a Menu or MenuBar instance s submenus. - Todd
    Message 1 of 2 , Jun 2, 2009
    • 0 Attachment
      The "showdelay" configuration property only applies to a Menu or
      MenuBar instance's submenus.

      - Todd

      On Apr 9, 2009, at 6:40 AM, balkrishan327 wrote:

      >
      >
      > hello Every one
      >
      > i was trying to use yui menu and was trying to use showdelay
      > property to introduce some delay before my menu is displayed.
      >
      > I copied some code from YUI examples and tried to edit the code but
      > shoedelay property does not seem to have an affect.
      >
      > Can some body help me out?
      >
      > The code i am using is posted below
      >
      > <script type="text/javascript">
      >
      > /*
      > Initialize and render the Menu when its elements are ready
      > to be scripted.
      > */
      >
      > YAHOO.util.Event.onContentReady("basicmenu", function () {
      >
      > /*
      > Instantiate a Menu: The first argument passed to the
      > constructor is the id of the element in the page
      > representing the Menu; the second is an object literal
      > of configuration properties.
      > */
      >
      > var oMenu = new YAHOO.widget.Menu("basicmenu", { fixedcenter: true,
      > position: "dynamic", showdelay: 10000 });
      >
      > /*
      > Call the "render" method with no arguments since the
      > markup for this Menu instance is already exists in the page.
      > */
      >
      > oMenu.render();
      >
      > YAHOO.util.Event.addListener("menutoggle", "mouseover", oMenu.show,
      > null, oMenu);
      >
      > });
      >
      > </script>
      >
      > This is ofcourse the code copied form YUI examples with a bit of
      > modification with position and show delay properties added.
      >
      > Can some boody figure it out why it is not working?
      >
      > Thanks in Advance
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.