I try to start a site with a closed Fx.Slide(). What I have:
<a href="#" onClick="$$('.cont_inside').slide('toggle'); return false;">navi 1</a>
The slide starts closed but don´t comes up on click. Without the '.hide()' it works normal. Only want to
start the slide in closed condition.
Thanx for help
In your code, you have two '$' in the onClick. Is that copied/pasted from your actual code? If so, take out one of the '$'.
thanx for your answer. I don´t know what you exactly mean. $$ returns a collection and I take the first  of them. Without it comes to
TypeError: $(...) is null
I just want to know how to hide an element on startup. The first toggle should be the reveal of the element.. not the dissolve.
... the solution is:
Sorry if I missed something, but isn't this identical to post one.
In the Prototype library, the double dollar selector takes an arbitrary number of CSS selectors (strings) and returns a document-order array of extended DOM elements that match any of them.
I'm guessing that's what the OP is using.
Nope. There are still two dollars but 'slide ('hide')' instead of hide ().
Ah. Missed that. Cheers
This topic is now closed. New replies are no longer allowed.