1 Reply Latest reply on Aug 25, 2009 5:59 AM by Nick Belaevski

    <rich:effect> - how to hide a div by default?

    Matthias Age Newbie

      Hi,

      I 'm using a element which I want to show / hide via <rich:effect />.
      I copied the following code snippet from documentation:




      <rich:effect name="hideDiv" for="contentDiv" type="Fade" />
      <rich:effect name="showDiv" for="contentDiv" type="Appear" />

      Everything works but I don't know how to hide the div it if the page is rendered. If I call the the generated javascript function hideDiv(), the div first appears and at the end of page rendereing it is hidden.
      How can I hide it immediately - without first showing up?

      thx
      Matthias