script.aculo.us fade in/out with same click

Out of context: Reply #2

  • Started
  • Last post
  • 2 Responses
  • Shepstar150

    Ok I got this far, which would work pretty fine but I can't get the first submenu to lay exactly over the second one.
    Anyone got an idea?
    If I use position:absolute it would work, but then they appear in the top left corner of my browser window and not where the should appear.

    <div id="submenu_about" style="display:none; position:relative; top:0; left:0; z-index:1;">Submenu1</div>
    <div id="submenu_media" style="display:none; position:relative; top:-20; left:0; z-index:2;">Submenu 2</div>

View thread